Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

API: JS: Utilities

ebollens edited this page Sep 29, 2011 · 5 revisions

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.

Clone this wiki locally