remove code

Posted in: Newspaper
Post count: 63

How to remove unused code in my website
For example- unused CSS, Script, https://www.youtube.com/iframe_api, https://s.ytimg.com/yts/jsbin/www-widgetapi-vflcS5aan/www-widgetapi.js

how to remove unused all code…

sir your providing link from another question I follow this step but not showing result in developer tool:-

https://forum.tagdiv.com/topic/mobile-theme-and-google-testing-tools-mobile-friendly-webmastertools-pgspeed/

please Solve it

My Website link:-
https://shayaristar.com/

Post count: 35449

Hi,

This scripts are from our theme and one is use for youtube videos, unfortunately for the moment these are use all the time, this problem will be fix for the coming updates and will be load only if you are using the elements that are using these scripts (eg. youtube videos).

Thank you!

Post count: 63

sir I know but all code unused CSS and script anything remove in my website
my website’s mobile performance is very bad.

sir your suggestion link:-
https://forum.tagdiv.com/topic/mobile-theme-and-google-testing-tools-mobile-friendly-webmastertools-pgspeed/
follow the link and all code are paste in functions.php file but sir unused CSS and script more codes are creating a problem for my website speed please guide me on how to solve mobile performance? because his effected in search engine optimization (eg.SEO, SERP)

you check my website link via page speed insight tool:-
https://shayaristar.com

Suggest me Useful Guideline…

Post count: 35449

Hi,

Your website is not very bad using the responsive version for mobile -> https://i.imgur.com/wsbcTOK.png to make it faster you can try the mobile theme plugin, please check our documentation about this plugin here -> https://forum.tagdiv.com/the-mobile-theme/ this should solved the problem with extra code on mobile version and make the mobile design different, but faster.

Let me know the results!
Thank you!

Post count: 63

Hi Calin,

Sir, but I have an Amp, so I do not have to put it in Mobile + Amp because my website does not look good in mobile, I have selected Amp version, so why is the problem coming?

Because Amp Version is a very good but not a best performance in mobile theme

Post count: 35449

Hi,

My above suggestion was that if you are using the mobile theme plugin, then you can make the mobile version faster.
The page speed of your website depends on how well your site is optimized, if you follow the steps which are presented in this tutorial here -> https://forum.tagdiv.com/topic/speed-optimization-2/

Thank you!

Post count: 63

sir you share link before trying all of code paste in my website wp content>functions.php and all of caching code paste in .htaccess file but not a optimize speed in mobile verison
sir why issue showing…..

Post count: 35449

Hi,

The speed and how your website moves it depends on so many external factors. Starting from your hosting plan, to your content, plugins etc. There are a lot of users that have 99/100 page speed by optimizing all these factors to their best.
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For page speed and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/

Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.