mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
0ca61242b8
This feature is used for defer loading of images and in future for post cloaking This gives us a polyfill so we can safely use the feature in problem browsers The polyfill supports "polling" but it does not appear we need it yet. If we discover anything odd here, consider setting poll interval per: https://github.com/w3c/IntersectionObserver/tree/master/polyfill ``` var io = new IntersectionObserver(callback); io.POLL_INTERVAL = 100; // Time in milliseconds. ``` Keeping the mutation observer cause we often mutate the DOM |
||
---|---|---|
.. | ||
assets | ||
data |