From 33d67ffc4f9d9d0d7ad672997ffc5261770d988b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 28 Oct 2020 18:01:59 -0300 Subject: so far so good --- lazy-show.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 lazy-show.js (limited to 'lazy-show.js') diff --git a/lazy-show.js b/lazy-show.js deleted file mode 100644 index c6a1bf25..00000000 --- a/lazy-show.js +++ /dev/null @@ -1,16 +0,0 @@ -// Kinda like lazy-fallback.js in that this should work on any 8rowser, period. -// Shows the lazy loading images iff JS is enabled (so that you don't have a -// duplicate image if JS is disabled). - -lazyLoadingShowHiddenImages(); - -function lazyLoadingShowHiddenImages() { - // This is a live HTMLCollection! We can't iter8te over it normally 'cuz - // we'd 8e mutating its value just 8y interacting with the DOM elements it - // contains. A while loop works just fine, even though you'd think reading - // over this code that this would 8e an infinitely hanging loop. It isn't! - var elements = document.getElementsByClassName('js-hide'); - while (elements.length) { - elements[0].classList.remove('js-hide'); - } -} -- cgit 1.3.0-6-gf8a5