Utilities [mwf.util]

Utility functions are encapsulated in the mwf.util namespace.

  • mwf.util.importCSS(webpath) Writes a link tag to the DOM with the web path in question to include the CSS file specified. This allows the dynamic loading of a script asynchronous from page load if desired, as well as allows the browser to best cache the item.

  • mwf.util.importJS(webpath) Writes a script tag to the DOM with the web path in question to include the script specified. This allows the dynamic loading of a script asynchronous from page load if desired, as well as allows the browser to best cache the item.