Tag Attributes

The following tag attributes are used to configure and control Edgemesh® features.

Script Loader

The Edgemesh® Script Loader is configured by setting the type attribute on script tags to one of the supported loading strategies.


type

Instructs Edgemesh® Client on how to load the given script tag. The applicable values are:

  • beforeInteractive: Loads the given script before the page becomes interactive. This setting is appropriate for scripts that are required to render the page, but shouldn't block parsing of the DOM.
Before Interactive
<script
type="edgemesh/beforeInteractive"
src="https://example.com/script.js"
>
</script>
  • afterInteractive: Loads the given script after the page has become interactive. This setting is useful when you want a script to load after the page can be interacted with by the user. Use this setting for important scripts that are not required to load the page.
After Interactive
<script
type="edgemesh/afterInteractive"
src="https://example.com/script.js"
>
</script>
  • lazyOnLoad: Loads the given script after the page is fully loaded. This setting is useful for heavy javascript that is not immediately required by the page. For instance, most third-party analytics and apps can be lazy-loaded.
Lazy OnLoad
<script
type="edgemesh/lazyOnLoad"
src="https://example.com/script.js"
>
</script>
  • worker: The ability to off-load a script to another thread via Web Workers is coming soon. Coming Soon
Web Worker
<script
type="edgemesh/worker"
src="https://example.com/script.js"
>
</script>

Made withby Edgemesh Corporation