{"id":870,"date":"2018-10-19T10:55:27","date_gmt":"2018-10-19T05:25:27","guid":{"rendered":"https:\/\/awpguide.com\/?p=870"},"modified":"2018-10-19T10:55:27","modified_gmt":"2018-10-19T05:25:27","slug":"how-to-minify-static-files-in-wordpress","status":"publish","type":"post","link":"https:\/\/awpguide.com\/wp-guides\/how-to-minify-static-files-in-wordpress\/","title":{"rendered":"How To Minify Static Files In WordPress"},"content":{"rendered":"

Website speed is an important\u00a0factor these days. A one second’s slowness can cause you huge impact on the total annual revenue or conversation. We have already shared website speed optimization using WP Super Cache<\/a> and WP Fastest Cache<\/a>. In this post, we will show you how can you minify static files in WordPress and improve your website speed.<\/p>\n

What Are Static Files Needs To Get Optimized<\/h2>\n

If you are using a pretty huge theme, there will be so many CSS, JS, HTML files which needs optimization. Also, you may want to try optimizing the Google fonts. By optimizing them, you will be able to reduce the HTTP requests and reduce loading time.<\/p>\n

How To Minify Static Files In WordPress<\/h2>\n

First of all, you need to install the Autoptimize<\/a> WordPress plugin.<\/p>\n

\"Minify<\/p>\n

After installing the plugin, you may want to activate it.<\/p>\n

\"activate<\/p>\n

Upon activation, you can find the plugin settings under the WordPress settings.<\/p>\n

\"autoptimize<\/p>\n

Enable all general settings and update.<\/p>\n

\"autoptimize<\/p>\n

On the extra tab, configure it according to your needs. You muse remove query strings from your\u00a0URLs to improve page speed.<\/p>\n

\"extra<\/p>\n

Save the changes.<\/p>\n

After this, we run a test using the Pingdom tool<\/a>.<\/p>\n

\"autoptimize<\/p>\n

You can see that the page loaded in 1.02 seconds, all images, JS and HTML codes got optimized as well.<\/p>\n

For this test blog, we haven’t used a caching plugin, optimized images. If you use a caching plugin and lazy load plugin, you can significantly improve the loading time.<\/p>\n

We hope you enjoyed the post and found it useful. If you did, consider sharing this post with your friends and fellow bloggers on social media. For more related posts, you may want to consider checking our blog section<\/a>.<\/p>\n

If you need to optimize your images, you may want to consider using a hosted solution like TinyPNG<\/a>. We always recommend you choosing a lightweight theme for your WordPress store. Check out HappyThemes<\/a>, MyThemeShop<\/a>, and StudioPress<\/a> for simple and awesome designs.<\/p>\n","protected":false},"excerpt":{"rendered":"

Website speed is an important\u00a0factor these days. A one second’s slowness can cause you huge impact on the total annual … <\/p>\n

Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":966,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/posts\/870"}],"collection":[{"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/comments?post=870"}],"version-history":[{"count":0,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/media\/966"}],"wp:attachment":[{"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/awpguide.com\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}