Skip to Content
Scrollsequence 1 (classic)
V1Advanced Use

Advanced Use

Image Preload Event

In case you are using an external preloader plugin, you can hook into the ssqPreloadPercentage JavaScript event. This event fires once enough images are preloaded and the preload percentage is met.

Below is an example on how to listen to the ssqPreloadPercentage event. This script is best placed before the ssq-lib*.js file so the event is captured correctly.

// Listen for the event. document.addEventListener('ssqPreloadPercentage', function (e) { console.log('Preload Percentage Has Been Met'); }, false);
Last updated on