Carousel Image Preloader

Intelligently preload images in carousels for faster navigation

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
smed79
Ημερήσιες εγκαταστάσεις
2
Σύνολο εγκαταστάσεων
3
Βαθμολογίες
0 0 0
Έκδοση
1.0
Δημιουργήθηκε την
20/04/2026
Ενημερώθηκε την
20/04/2026
Μέγεθος
7 KB
Άδεια
GPLv3
Εφαρμόζεται σε
Όλοι οι ιστοχώροι

Description

Intelligently preload images in carousels and sliders for faster, seamless navigation. This script eliminates the frustrating wait time when clicking through image galleries, product showcases, and slideshow sections.

How It Works

The script automatically detects carousels on any website and predictively preloads adjacent images before you navigate to them. When you click the next/previous arrow, swipe on mobile, or use keyboard navigation, the images are already cached and display instantly.

Features

  • Automatic Carousel Detection - Identifies carousels across different frameworks (Swiper, Slick, Splide, Owl, Glide, and more)
  • Smart Preloading - Preloads images ahead and behind the current one based on predicted user navigation
  • Multi-Input Support - Monitors clicks, swipes, keyboard arrows, and other navigation methods
  • Background Image Support - Works with both <img> tags and CSS background images
  • Minimal Overhead - Only activates on detected carousels, no impact on regular pages
  • Dynamic Content Support - Continuously scans for newly loaded carousels on infinite scroll or dynamically updated pages

Configuration

Open the script and adjust these values to customize behavior:

  • PRELOAD_BUFFER (default: 3) - Number of images to preload ahead/behind current. Higher = faster navigation but more bandwidth
  • PRELOAD_DELAY (default: 500ms) - Delay before preloading triggers after navigation. Adjust if carousels transition slowly
  • DEBUG (default: false) - Set to true to see console logs for troubleshooting

Performance

Noticeable improvement on sites with:

  • Product image galleries (e-commerce)
  • Game/app screenshot carousels
  • Portfolio and photo galleries
  • Review or comparison sliders
  • Any lazy-loaded image carousel

Compatibility

  • Works on HTTPS websites
  • Compatible with all modern browsers (Chrome, Firefox, Edge, Safari)

Notes

The script uses the browser's native image caching, so it only downloads images once. Preloaded images are cached locally and reused when you navigate back to them.

License

GPLv3