Hi,
I am trying to speed up my site on newspaper theme.
Most of delay happens from loading additional resources that i don’t use:
vimeo player – https://player.vimeo.com/api/player.js
https://jbhnews.com/wp-admin/admin-ajax.php
https://www.youtube.com/iframe_api
https://s.ytimg.com/yts/jsbin/www-widgetapi-vflcS5aan/www-widgetapi.js
Are these calls part of Newspaper wordpress theme?
Or some other widget or plugin.
Here is waterfall of loading.
https://webpagetest.org/result/200526_1V_d11e1f2dff145228d4800940bd59b95b/3/details/#waterfall_view_step1
Can you please tell me if it’s Newspaper theme that is loading them.
I did a bit of digging and found out that it’s being loaded by Tagdiv Composer plugin.
JS file for that element is 245 kb, crazy. Why is it required for front end loading at all?
File is located here plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js
Do i understand correctly that only way to disable calls to youtube and vimeo is cut them out from this JS file?
Hi,
These scripts are use fro videos, most of them for YouTube videos, unfortunately for the moment these are loading on website all the time. This problem is on our list to be fix for the coming updates and the code will be load only if is need of it.
Thank you for your understanding and sorry for the inconvenience!
Hi,
For the moment there is no option for this, but the problem will be fix in coming updates.
If you want to remove the external links, you can do it only from theme files -> wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js -> https://i.imgur.com/44Lzooc.png -> https://i.imgur.com/r3MR0uh.png
Unfortunately this is the only way to remove the scripts, also please not that this is not indicate, this can damage the theme functionality.
Thank you for your understanding and sorry for the inconvenience!
Any timeline as to when this will be implemented? the site is really slow.
Hi,
Unfortunately I do not have any idea when the update will be, sorry!
As a “solution”, you can use prev version, v10.3.2 -> https://i.imgur.com/fRCaIxH.png
Thank you for your understanding and sorry for the inconvenience!