Skip to content
This repository has been archived by the owner on Jul 5, 2020. It is now read-only.

system.force_load()

krisdb2009 edited this page Feb 22, 2017 · 3 revisions

#This method has been removed since: c6529ac

Details

This method will place a <script> tag with the selected path in the document header momentarily to allow the browser to load in the required script. This method does not provide a callback since it is synchronous.

Only use this method if system.loader() causes compatibility issues.

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.

Arguments

system.force_load(string Path);

Path: Path of the script to be executed.

Example

/* /folder/script.js Contents
console.log('I have been loaded, and executed.)
*/


var path = '/folder/script.js';

system.force_load(path);


/* Console Log
I have been loaded and executed.
*/


Webdows Documentation Wiki

system Object

explorer Object

Clone this wiki locally