ready.js (197B)
- export default function ready(loaded) {
- if (['interactive', 'complete'].includes(document.readyState)) {
- loaded();
- } else {
- document.addEventListener('DOMContentLoaded', loaded);
- }
- }
git clone https://hacktivis.me/git/mastofe.git
ready.js (197B)
- export default function ready(loaded) {
- if (['interactive', 'complete'].includes(document.readyState)) {
- loaded();
- } else {
- document.addEventListener('DOMContentLoaded', loaded);
- }
- }