MCPcopy
hub / github.com/greensock/GSAP / _queueRefreshAll

Function _queueRefreshAll

esm/ScrollTrigger.js:457–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

455 _refreshID = 0,
456 _queueRefreshID,
457 _queueRefreshAll = function _queueRefreshAll() {
458 // we don't want to call _refreshAll() every time we create a new ScrollTrigger (for performance reasons) - it's better to batch them. Some frameworks dynamically load content and we can't rely on the window's "load" or "DOMContentLoaded" events to trigger it.
459 if (_queueRefreshID !== _refreshID) {
460 var id = _queueRefreshID = _refreshID;
461 requestAnimationFrame(function () {
462 return id === _refreshID && _refreshAll(true);
463 });
464 }
465},
466 _refresh100vh = function _refresh100vh() {
467 _body.appendChild(_div100vh);
468

Callers 1

ScrollTrigger.jsFile · 0.70

Calls 1

_refreshAllFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…