1 changed files with 11 additions and 7 deletions
@ -1,8 +1,12 @@ |
|||
// Check if DOM has already loaded as we're loading async
|
|||
['interactive', 'complete'].indexOf(document.readyState) >= 0 |
|||
? init() |
|||
: document.addEventListener('DOMContentLoaded', init); |
|||
(function() { |
|||
|
|||
// When DOM is ready
|
|||
function init() { |
|||
} |
|||
// Check if DOM has already loaded as we're loading async
|
|||
['interactive', 'complete'].indexOf(document.readyState) >= 0 |
|||
? init() |
|||
: document.addEventListener('DOMContentLoaded', init); |
|||
|
|||
// When DOM is ready
|
|||
function init() { |
|||
} |
|||
|
|||
})(); |
|||
|
Loading…
Reference in new issue