diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2020-12-10 17:58:36 -0400 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2020-12-10 17:58:51 -0400 |
commit | d42c5dfc610a1953f798f87a0b8861d8fa5dca9d (patch) | |
tree | d3337f804b78b2995f64ff4a14566ad4c7236a3d /static/lazy-show.js | |
parent | 56298f4a826882abcf6f1065ebca7c6490f7e622 (diff) |
more lazy loading tweaks
Diffstat (limited to 'static/lazy-show.js')
-rw-r--r-- | static/lazy-show.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/static/lazy-show.js b/static/lazy-show.js deleted file mode 100644 index c6a1bf25..00000000 --- a/static/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'); - } -} |