As mentioned above, I use discourse as the commenting system and here’s an example
Quite a few users upload images to the comments and the JS itself is impacting the load time.
Is there a way I can load the commenting system only on scroll? Which if you think about it makes sense – you need to load it only on user intent – when to read comments.
This is the code I use
Wonder if it’s the right approach to attach the script to onscroll? Although I understand complexities between repeated scroll events firing.