No local image assets are required.
Images are loaded directly from the internet via stable CDN URLs.
- HTML5 – semantic markup
- CSS3 – modern layout & animations
- JavaScript (Vanilla) – gallery logic, pagination, lightbox
- Bootstrap 5 – responsive grid & UI utilities
Infinite scroll caused layout repaint issues and performance drops.
Pagination ensures:
- Predictable DOM size
- No scroll-based rendering spikes
- Better stability on low-end devices
Third-party lightbox libraries were removed to:
- Reduce JavaScript bundle size
- Avoid re-initialization overhead
- Improve interaction performance (INP)
The page loader hides on DOMContentLoaded, not window.load, so:
- UI becomes visible immediately
- Images load progressively in the background
- No “invisible page” issue on slow networks
- Images use 4:3 aspect ratio (best balance of quality & size)
- Loaded from a CDN with fixed dimensions
- Lazy loading + async decoding enabled
- Download or clone the project
- Open
index.htmlin any modern browser
(No build tools or server required)
- Optimized DOM updates using
DocumentFragment - No blocking JavaScript during page load
- Minimal CSS animations (GPU-friendly)
- Stable layout with zero cumulative layout shift (CLS)
Developed as part of a frontend internship task, with focus on:
- Clean architecture
- Performance optimization
- Real-world engineering decisions
This project is for educational and demonstration purposes.