mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Restrict script load error excusal a bit.
This commit is contained in:
@@ -121,6 +121,10 @@
|
||||
var buildList = span1.lastChild,
|
||||
loaderList = span2.lastChild;
|
||||
|
||||
setTimeout(function() {
|
||||
ui.timing.loadEventEnd = +new Date;
|
||||
}, 1);
|
||||
|
||||
init();
|
||||
});
|
||||
|
||||
@@ -161,6 +165,11 @@
|
||||
'loader': loader
|
||||
};
|
||||
|
||||
// expose page load timestamps
|
||||
ui.timing = {
|
||||
'loadEventEnd': 0
|
||||
};
|
||||
|
||||
// used to indicate testing a modularized build
|
||||
ui.isModularize = /\b(?:commonjs|(index|main)\.js|lodash-(?:amd|node)|modularize|npm)\b/.test([location.pathname, location.search, ui.buildPath]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user