You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@boye thanks..
However my questions is another.
Performance change if I load multiple files or just one single file?
Maybe multiple files is loaded more fast since is loaded in parallel?
Since I could just load one main file vendor + main for all pages, I could just use something like this:
var r = document.getElementsByTagName( "script" )[ 0 ],
s = document.createElement( "script" );
s.src = 'all.js';
r.parentNode.insertBefore( s, r );
Activity
boye commentedon Mar 13, 2017
You can use
$script.orderas well. It's not really documented but it works just as expected. For example:kamov commentedon Mar 13, 2017
@boye thanks..
However my questions is another.
Performance change if I load multiple files or just one single file?
Maybe multiple files is loaded more fast since is loaded in parallel?
Since I could just load one main file vendor + main for all pages, I could just use something like this:
var r = document.getElementsByTagName( "script" )[ 0 ],
s = document.createElement( "script" );
s.src = 'all.js';
r.parentNode.insertBefore( s, r );