Former-commit-id: 44bf5d2fe66c0b521f7125e7d19b416849248f1c
@@ -222,7 +222,9 @@
lastTimestamp = timestamp;
callback(timestamp);
});
- pendingRequestAnimationFrameCalls.set(requestId, callback);
+ if (!loadDeferredImages || pendingRequestAnimationFrameCalls.length < 128) {
+ pendingRequestAnimationFrameCalls.set(requestId, callback);
+ }
}
return requestId;
};