- This topic has 0 replies, 1 voice, and was last updated 7 years, 5 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Developing Websites › HTML PHP Snippets › Asynchronous loading of twitter widget javascript
I had some code that included twitter JavaScript.
It was not good for my page loading times and it was suggested that I load this script asynchronously to reduce blocking of page rendering.Here is the exact details from http://gtmetrix.com/:
The following resources are loaded synchronously. Load them asynchronously to reduce blocking of page rendering.http://tips4pc.com/ loads http://connect.facebook.net/en_US/all.js synchronously.http://tips4pc.com/ loads http://platform.twitter.com/widgets.js?7e5bd6 synchronously.http://tips4pc.com/ loads http://platform.twitter.com/widgets.js?7e5bd6 synchronously.
So I found this script. You need to find this in your code:
and replace it with this: