{"id":10527,"date":"2010-04-26T11:22:40","date_gmt":"2010-04-26T11:22:40","guid":{"rendered":"https:\/\/www.amitbhawani.com\/blog\/?p=10527"},"modified":"2010-04-26T11:22:40","modified_gmt":"2010-04-26T11:22:40","slug":"increase-wordpress-blog-loading-speed-by-compressing-css-files","status":"publish","type":"post","link":"https:\/\/www.amitbhawani.com\/blog\/increase-wordpress-blog-loading-speed-by-compressing-css-files\/","title":{"rendered":"Increase WordPress Blog Loading Speed by Compressing CSS Files"},"content":{"rendered":"<p>The blog&#8217;s <a href=\"https:\/\/www.amitbhawani.com\/blog\/check-website-page-speed-load-time-with-google\/\">loading speed<\/a> is one of the most important factor for many reasons like Google Search Engine Rankings, making visitors access <a href=\"https:\/\/www.amitbhawani.com\/blog\/speed-your-wordpress-blog-with-clean-options-wp-plugin\/\">faster blog<\/a> etc. Normally most of the bloggers use professional looking WordPress themes which are heavily coded with a lot of css codes and Images. The Images can be easily optimized with the use of Image Compression Software&#8217;s.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/CSS-Compressor.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/CSS-Compressor-150x150.jpg?resize=150%2C150\" alt=\"CSS Compressor\" title=\"CSS Compressor\" width=\"150\" height=\"150\" class=\"alignright size-thumbnail wp-image-10528\" srcset=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/CSS-Compressor.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/CSS-Compressor.jpg?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/CSS-Compressor.jpg?resize=120%2C120&amp;ssl=1 120w, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/04\/CSS-Compressor.jpg?w=320&amp;ssl=1 320w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>If you have huge number of visitors to your blog, then you can save up bandwidth too by compressing the CSS Files, because any file reduction on the web hosting files can save up both the Space &#038; Bandwidth. We would recommend using <a rel=\"nofollow\" target=\"_blank\" href=\"http:\/\/www.cssdrive.com\/index.php\/main\/csscompressoradvanced\/\">this<\/a> tool which offers with a lot of customization options to your CSS Files.<\/p>\n<p>Initially you need to paste down all the CSS Code from your style.css file which is located in the themes folder of your WordPress installation. You need to check the following options :<\/p>\n<p><strong>Spaces and tabs<\/strong><br \/>\nReplace multiple spaces with just one space<br \/>\nRemove space around chars ;:{},<br \/>\nLeave space between selectors<br \/>\nLeave space between properties<br \/>\nRemove tabs<\/p>\n<p><strong>New lines handling<\/strong><br \/>\nLeave lines as they are<br \/>\nReplace multiple empty lines with just one empty line<br \/>\nRemove all newlines<\/p>\n<p><strong>Comment handling<\/strong><br \/>\nDon&#8217;t strip any comments<br \/>\nStrip ALL comments<br \/>\nStrip comments at least chars long<\/p>\n<p><strong>Other options<\/strong><br \/>\nCompress color codes where possible<br \/>\nRemove unnecessary semi-colons<br \/>\nOne command per line<\/p>\n<p>My original CSS File was of around <\/p>\n<p>Next once you click on the &#8216;Compress it&#8217; button, the Online tool will perform all the tasks and then give you a quick report as shown below.<\/p>\n<p><strong>Compression results :<\/strong><br \/>\nOriginal size: 27370 bytes<br \/>\nCompressed size: 21828 bytes<br \/>\nSavings: 5542 bytes (20%) <\/p>\n<p>Overall a savings of 20%-60% which means that you would be saving around a few GB&#8217;s of Bandwidth of you have a million page views every month along with a faster loading blog which would keep visitors return to your blog regularly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The blog&#8217;s loading speed is one of the most important factor for many reasons like Google Search Engine Rankings, making visitors access faster blog etc. Normally most of the bloggers use professional looking WordPress themes which are heavily coded with a lot of css codes and Images. The Images can be easily optimized with the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":19780,"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,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[376],"tags":[],"class_list":{"0":"post-10527","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-wordpress","8":"entry"},"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/CSS-Compressor-150x150.jpg?fit=150%2C150&ssl=1","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":7692,"url":"https:\/\/www.amitbhawani.com\/blog\/free-website-loading-time-tool\/","url_meta":{"origin":10527,"position":0},"title":"Find Website Loading Time with Pingdom Tools","author":"Amit Bhawani","date":"January 1, 2010","format":false,"excerpt":"Google has hinted that if you want to make your website rank in the top then you need to make sure that its loading time is reduced. This is because Google wants to make sure that all the websites listed on the Search Result Pages would load real quick, hence\u2026","rel":"","context":"In &quot;Web Tools&quot;","block_context":{"text":"Web Tools","link":"https:\/\/www.amitbhawani.com\/blog\/category\/web-tools\/"},"img":{"alt_text":"Website Load Speed","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2009\/12\/Website-Load-Speed.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":11329,"url":"https:\/\/www.amitbhawani.com\/blog\/youtube-streaming-videos-bandwidth-usage\/","url_meta":{"origin":10527,"position":1},"title":"How Much Bandwidth usage do Youtube Streaming videos take","author":"Amit Bhawani","date":"June 9, 2010","format":false,"excerpt":"I use a USB Data Card for accessing the Internet on my Laptop and the share computer is used as a WiFi Hotspot to Share the Internet Connection with my Apple iPad. While using the iPad most of the time i use the Youtube App to view different videos. Now\u2026","rel":"","context":"In &quot;Ultimate Guides&quot;","block_context":{"text":"Ultimate Guides","link":"https:\/\/www.amitbhawani.com\/blog\/category\/guides\/"},"img":{"alt_text":"Youtube Logo","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/06\/Youtube-Logo.jpg?fit=1200%2C848&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/06\/Youtube-Logo.jpg?fit=1200%2C848&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/06\/Youtube-Logo.jpg?fit=1200%2C848&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/06\/Youtube-Logo.jpg?fit=1200%2C848&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/06\/Youtube-Logo.jpg?fit=1200%2C848&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":20253,"url":"https:\/\/www.amitbhawani.com\/blog\/web-design-tools-designers\/","url_meta":{"origin":10527,"position":2},"title":"6 Must Have Web Design Tools For Web Designers","author":"Yogesh Patel","date":"December 15, 2010","format":false,"excerpt":"Web Design is a tedious task and without the help of tools or software's designing of any web page is very much difficult & absolutely impractical. However with the advent of latest browsers and other tools you can do web design without much advanced knowledge of CSS and HTML languages.\u2026","rel":"","context":"In &quot;Web Tools&quot;","block_context":{"text":"Web Tools","link":"https:\/\/www.amitbhawani.com\/blog\/category\/web-tools\/"},"img":{"alt_text":"Firebug","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Firebug.png?fit=633%2C483&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Firebug.png?fit=633%2C483&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Firebug.png?fit=633%2C483&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":8692,"url":"https:\/\/www.amitbhawani.com\/blog\/speed-up-wordpress-blogs-by-php-gzip-compression\/","url_meta":{"origin":10527,"position":3},"title":"Speed Up WordPress Blogs by PHP GZip Compression","author":"Chetan Bhawani","date":"February 24, 2010","format":false,"excerpt":"Wordpress Blogs are a excellent blogging CMS and is currently used by millions of Blogger's all around the world. Now Google is talking more about speeding the web, which means that Google expects that your website is faster and quick loading and this can lead to better rankings in the\u2026","rel":"","context":"In &quot;Wordpress Guide&quot;","block_context":{"text":"Wordpress Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/wordpress\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":335,"url":"https:\/\/www.amitbhawani.com\/blog\/tweaks-to-reduce-internet-broadband-connection-problem\/","url_meta":{"origin":10527,"position":4},"title":"4 Ways to Increase Your Internet Broadband Connection Speed","author":"Amit Bhawani","date":"February 7, 2008","format":false,"excerpt":"There are many occasions when you will get into internet connection problems and will not be able to get online and handle your normal online business, this is the stage when you need to try out some of these tweaks for the respective connections. If you are using airtel 8mbps\u2026","rel":"","context":"In &quot;Broadband Services&quot;","block_context":{"text":"Broadband Services","link":"https:\/\/www.amitbhawani.com\/blog\/category\/broadband\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Internet-Properties-Control-Panel.jpg?fit=335%2C421&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":8545,"url":"https:\/\/www.amitbhawani.com\/blog\/increase-internet-browsing-speed-dial-up-slow-connection\/","url_meta":{"origin":10527,"position":5},"title":"Increase Internet Browsing Speed on Dial-up or Slow Connection","author":"Amit Bhawani","date":"February 15, 2010","format":false,"excerpt":"We have covered several articles previously on how to increase your internet browsing speed while you are on a slow internet connection or while you are using your mobile phone for internet access. You can check out some of these here - Increase Internet Browsing Speed, Optimize Internet Connection, Increase\u2026","rel":"","context":"In &quot;Tips &amp; Tweaks&quot;","block_context":{"text":"Tips &amp; Tweaks","link":"https:\/\/www.amitbhawani.com\/blog\/category\/tips-tweaks\/"},"img":{"alt_text":"Increase Internet Speed","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/02\/Increase-Internet-Speed.jpg?fit=350%2C350&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts\/10527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/comments?post=10527"}],"version-history":[{"count":0,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts\/10527\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/media\/19780"}],"wp:attachment":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/media?parent=10527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/categories?post=10527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/tags?post=10527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}