skip to Main Content

Lazy Load External Javascript With Data Parameters – Telegram API

Trying to lazy load this code: <script async src="https://comments.app/js/widget.js?3" data-comments-app-website="TvibSQx_" data-limit="5" data-color="29B127" data-dislikes="1" data-colorful="1"></script> Can lazy load an external JavaScript like this: <script type="text/javascript"> window.addEventListener('scroll', function(e) { var currentScroll = document.scrollingElement.scrollTop; var telegram_target = document.getElementById('telegram'); if( telegram_target && (currentScroll >…

VIEW QUESTION
Back To Top
Search