Added TikTok. Removed old template modifications related to Instagram/Twitter resizing that are not needed anymore.
  • Like
Reactions: kollegahderboss
Updated Gfycat, The Guardian and Tumblr
Replaced PHP callback with a standard XenForo template.​
The new definition uses two different embed URLs as some documents can only be embedded with one or the other.
When visiting the last post of a thread, dynamically-sized embeds (such as tweets) from previous posts will expand upward even if they fully appear on the screen. It will keep the post the user is reading at the same position on the screen and prevent the useful content from moving around as the result of other elements loading.

A bug has been fixed that caused the lazy loader to incorrectly determine which way the page was being scrolled. It didn't really have any impact on the user experience and is only mentioned for completeness.

At this point I'm happy with the behaviour of the lazy loader and I don't have any more changes planned. The lazy loader is meant to be almost invisible so I may write a full description of the multiple ways it improves the user experience behind the scenes.
The following sites have been updated: Facebook, Gist, Google+, Imgur, Instagram, Pinterest, Reddit, Telegram, Tumblr, and Twitter.

The lazy loader doesn't wait anymore for the page to be fully loaded if it's taking too long. It helps in threads that contain large GIF images.
Added support for /i/ URLs in Twitter.
Updated lazy loader to detect iframes hidden in quotes.
The option is off by default. You can turn it on if you have a dark style and Facebook posts are unreadable.
This update should provide a slightly smoother experience with dynamically-sized content (e.g. tweets) across browsers.