Remove jquery from outer
This commit is contained in:
10
www/common/dom-ready.js
Normal file
10
www/common/dom-ready.js
Normal file
@@ -0,0 +1,10 @@
|
||||
define(function () {
|
||||
return {
|
||||
onReady: function (cb) {
|
||||
if (document.readyState === 'complete') { return void cb(); }
|
||||
document.onreadystatechange = function () {
|
||||
if (document.readyState === 'complete') { cb(); }
|
||||
};
|
||||
}
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user