Open tot-ra opened 9 years ago
Don't know if you got your answer already, but scriptjs doesn't use xhr ("ajax") to load its scripts. It creates a script element in the DOM that loads the scripts (see: https://github.com/ded/script.js/blob/master/src/script.js#l66). This doesn't support the onprogress event that xhr supports.
Would be nice if script loading() could report about % of progress while loading (if JS is ~2 mb then it would be useful), as suggested by Mozilla, its possible with ajax.. https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#Monitoring_progress