A number of improvements have been made to the lazy loader. The goal is to generally improve efficiency and make dynamically-sized embeds such as tweets as nondisruptive as possible.
- The size of dynamically-sized embeds (e.g. tweets) is cached locally in the browser. This will improve the user experience on repeat viewing or when the same embed is shown multiple times on a page.
- Visible embeds are loaded as soon as possible. Previously, the lazy loader waited a tiny fraction of time (32 ms) before checking for visible embeds while the page is loading. Combined with the aforementioned caching, it can reduce and even eliminate Cumulative Layout Shift.
- The visibility of all embeds in collapsed quotes is now checked to determine whether they should be loaded. Previously this only applied to regular-sized embeds such as YouTube videos, and has now been extended to all embeds. This means that an embedded tweet in a collapsed quote is not loaded unless it is at least partially visible.