itsericwoodward-site-v2/src/assets/scripts/1-docready.min.js

10 lines
873 B
JavaScript

// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT
/*
docready.js
https://github.com/jfriend00/docReady
The MIT License (MIT)
Copyright (c) 2014 John Friend
*/
!(function(t,e){"use strict";function n(){if(!a){a=!0;for(var t=0;t<o.length;t+=1){o[t].fn.call(window,o[t].ctx)}o=[]}}function d(){"complete"===document.readyState&&n()}(t=t||"docReady"),(e=e||window);var o=[],a=!1,c=!1;e[t]=function(t,e){return a?void setTimeout(function(){t(e)},1):(o.push({fn:t,ctx:e}),void("complete"===document.readyState||(!document.attachEvent&&"interactive"===document.readyState)?setTimeout(n,1):c||(document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):(document.attachEvent("onreadystatechange",d),window.attachEvent("onload",n)),(c=!0))))}})("docReady",window);
// @license-end