logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

ready.js (197B)


  1. export default function ready(loaded) {
  2. if (['interactive', 'complete'].includes(document.readyState)) {
  3. loaded();
  4. } else {
  5. document.addEventListener('DOMContentLoaded', loaded);
  6. }
  7. }