Using Scripts with Strapify

While Strapify generally works fine with other scripts, it is sometimes important to consider the order in which your scripts are loaded if they are dependent on each other.

Strapify will run after the DOMContentLoaded event has been emitted. This will ensure that any non async scripts will be executed before Strapify runs. If you would like a script to run before Strapify, but after the page has loaded, you should use a deferred script. If you would like a script to run after Strapify runs, you should wait for the strapifyInitialized event to be emitted on the document.