In this post I will show how we can remove the version number from CSS & JS files.

Many css and js files in the WordPress have the WordPress version number appended to their source. Therefore to improve the speed of website as much as possible we need to remove query strings from css and js files. When we analyze site’s page using any page speed analyzer such as Google’s Page Speed, YSlow or Pingdom, we are very likely to see suggestions to remove query strings from css and js files. This is a problem as many proxies will not cache the resources if it has a query string in the URL.
Add the below code to your theme’s functions.php file

Thanks for reading.

Software Professional, I am passionate to work on web/enterprise application. For more information please go to about me. You can follow on Twitter. You can be a friend on Facebook or Google Plus or Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.