Carousel Image Preloader

Intelligently preload images in carousels for faster navigation

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey, Greasemonkey или Violentmonkey.

Для установки этого скрипта вам необходимо установить расширение, такое как Tampermonkey.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey или Violentmonkey.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey или Userscripts.

Чтобы установить этот скрипт, сначала вы должны установить расширение браузера, например Tampermonkey.

Чтобы установить этот скрипт, вы должны установить расширение — менеджер скриптов.

(у меня уже есть менеджер скриптов, дайте мне установить скрипт!)

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

(у меня уже есть менеджер стилей, дайте мне установить скрипт!)

Автор
smed79
Установок в день
2
Всего установок
3
Оценки
0 0 0
Версия
1.0
Создано
20.04.2026
Обновлено
20.04.2026
Размер
7,1 КБ
Лицензия
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