Is platform.twitter.com/widgets.js necessary?
-
I’ve created a TWITTER FEEDS page which is currently the only page I use “custom-twitter-feeds” on. However, every page now takes a performance hit because custom-twitter-feed.php loads platform.twitter.com/widgets.js on every page.
Previously, I had scores of 100%/99% from GTmetrix.com. With the RSS Feed Retriever, I now get 91%/94%. I still get an “A” rating but I’m always looking to improve it.
GTmetrix suggests the following:
1) Compressing https://platform.twitter.com/widgets.js could save 65.5KiB (70% reduction).
2) Compressing https://platform.twitter.com/widgets/widget_iframe.940e1bc455d9af25d6ec2f14e90d0d6c.html could save 9.2KiB (61% reduction).
3) Minifying https://platform.twitter.com/widgets.js could save 365B (1% reduction).
4) Minifying https://platform.twitter.com/widgets/widget_iframe.940e1bc455d9af25d6ec2f14e90d0d6c.html could save 390B (3% reduction).So….. I tried commenting out the following in custom-twitter-feed.php as follows:
//wp_enqueue_script( ‘ctf_twitter_intents’, ‘https://platform.twitter.com/widgets.js’, array(), CTF_VERSION, true );But, your plug-in appears to work anyway on my site. Is the above php code really necessary?
- This topic was modified 5 years, 4 months ago by .
- This topic was modified 5 years, 4 months ago by .
- This topic was modified 5 years, 4 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Is platform.twitter.com/widgets.js necessary?’ is closed to new replies.