Carousel Image Preloader

Intelligently preload images in carousels for faster navigation

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
smed79
1日のインストール数
2
累計インストール数
3
評価
0 0 0
バージョン
1.0
作成日
2026/04/20
更新日
2026/04/20
大きさ
7.14KB
ライセンス
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