File Editor
Directories:
.. (Back)
handlebars
serialize-json
tablesorter
Files:
cache-3-3-1.min.js
cache.js
heartbeat-3-3-1.min.js
heartbeat.js
loadAsync-3-3-1.min.js
loadAsync.js
loadCSS-3-3-1.min.js
loadCSS.js
minify-3-3-1.min.js
minify.js
modal-3-3-1.min.js
modal.js
queue-3-3-1.min.js
queue.js
send-command-3-3-1.min.js
send-command.js
wpo-images-view-3-3-1.min.js
wpo-images-view.js
wpoadmin-3-3-1.min.js
wpoadmin.js
wposmush-3-3-1.min.js
wposmush.js
Create New File
Create
Edit File: loadAsync.js
/** * This function will work cross-browser for loading scripts asynchronously */ function loadAsync(src, callback) { var scriptTag, ready = false; scriptTag = document.createElement('script'); scriptTag.type = 'text/javascript'; scriptTag.src = src; scriptTag.onreadystatechange = function() { // console.log( this.readyState ); //uncomment this line to see which ready states are called. if (!ready && (!this.readyState || this.readyState == 'complete') ) { ready = true; typeof callback === 'function' && callback(); } }; scriptTag.onload = scriptTag.onreadystatechange document.getElementsByTagName("head")[0].appendChild(scriptTag) }
Save Changes
Rename File
Rename