how to remove render-blocking JavaScript and CSS in fold content
10 years ago
govind
Member
i am using light cafe from 1 year
with my site http://www.premkurtis.com when i check my speed with https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.premkurtis.com%2F error message shows render-blocking JavaScript and CSS in above-the-fold content how to resolve this problem please guide me. |
10 years ago
Dave
Support Service
Hi!
We don't recommend you to remove our java script. It is a very useful part of the theme. But you can disable your plugins and optimize your website. |
10 years ago
govind
Member
http://maps.google.com/maps/api/js?sensor=false&ver=3
http://maps.gstatic.com/intl/en_us/mapfiles/api-3/15/6/main.js i think this both scripts are for contact us page only. i am not using maps on every page. have any idea to remove this scripts except contact us page ? |
10 years ago
govind
Member
still waiting for response i am using two paid templates.
|
10 years ago
Alice
Support Service
Hi!
The first link is very useful for your contact form and for the proper work of google map shortcode. If you don't use the maps at all you can remove the code : from the file inc/library.php.Probably, the other link is provided by your third party plugin. You can get rid of it, but I don't know what the file calls this script. If the page is not your contact page it doesn't contain the script. |
10 years ago
govind
Member
i have solved my case
i have added this code to function.php
and this lines to top.php
'62' is my page id were i want to show google map. |
Leave a reply
Search by forum
SMThemes.com Support
-
Categories
- Framework
- Themes
- Affiliate Company
- Sponsorship Useful pages
- How to start using our themes
- Contacts