Lazy Loading Test Page
This page demonstrates lazy loading of images, iframes, and other media. Scroll down to see content load as it comes into view.
How to Test:
- Open browser DevTools → Network tab
- Filter by Images/Media
- Scroll down slowly to see images load dynamically
- Images should only load when they're about to enter the viewport
1. Above the Fold Image (Lazy Loading Starts Immediately)
This image is visible on page load, so it should start loading immediately:
Scroll down to trigger lazy loading...
2. Standard Lazy Loading (data-src)
These images use data-src
attribute and will load when scrolled into view:
Image #1 - Loads when visible
Image #2 - Loads when visible
3. Responsive Images with srcset
These images use data-srcset
for responsive loading:
4. Picture Element with Art Direction
Picture element with different sources for different screen sizes:
5. Background Images
These divs use data-lazy-bg
for background images:
6. Lazy Loaded Classes
These elements get classes added when they come into view:
Fade In Left
This box will fade in from the left when visible
Fade In Up
This box will fade in from below when visible
Fade In Right
This box will fade in from the right when visible
Dynamic Styling
This box will get Bootstrap primary background and white text when visible
7. Lazy Loaded Iframes
YouTube videos and other iframes that load on scroll:
8. Image Gallery
A grid of many images to test performance with multiple lazy-loaded elements:
9. Lazy Loaded Video
HTML5 video that loads when scrolled into view:
10. Slow Loading Test (Loading Animation Demo)
These images from picsum.photos load slowly, so you can see the loading animation:
Watch the shimmer loading animation
This should show loading state longer
11. Error Handling Test
These images have invalid URLs to test error handling:
This image should fail to load
This image should load successfully
12. Final Image at Bottom
This image is at the very bottom of the page:
🎉 You've reached the end!
All lazy-loaded content should now be visible.
12. Dynamic Content Test
Click the button below to dynamically add new lazy-loaded images to test MutationObserver: