7 Ways to Boost Your Page Load Time Using CSS and JavaScript

">  Posted in: Web Design • Written by: Christian Vasile Tweet 10Tweet

Everybody has less and less time today for surfing, chatting, spending time on social media or whatever they like to do on the internet. Slow loading speeds disappeared a long time ago and we don’t want to see blogs and web pages taking too much out of our already limited time. You can find many tools on the internet to help you improve your web pages’ loading speed and I took a look at many of them, so I am able to recommend you the following ones, which mainly work by eliminating the poorly written code.

1. Site Load Test

This one mainly works like a validator, but tells you more about each error you have. Although it has quite a few errors, 1stwebdesigner.com got a general loading time of 1.88 seconds, which is very good according to the standards, which say that a page should load within a maximum of four seconds.

Site Load Test will not do wonders for you, but will help you get rid of those tiny little errors you didn’t think about. It also helps you find errors regarding uploaded files, websites’ size and total objects to load, not only CSS and JavaScript mistakes you’ve made while coding. Note that this is not an application that will automatically remove the errors – you will have to do it yourself.

2. Packer

If you are a JavaScript developer or you want to use a JavaScript code in your webpage, Packer is what you need. It will not create the code for you, but it will compress it. This tools works very fast and very well. You only need to copy your original code into the top field and then click on “Pack”. Within a few seconds you will get the new code (which basically does the same as the original one), but in a different state. The compressed code will not generate errors and, as you all know, less code is less size and therefore faster loading time.

3. SquishIt 

SquishIt is a GitHub trademark and helps you a lot as well. When you have both CSS and JavaScript in your website (which is pretty much most of the time you code), this tool will “bundle” both of them into one file, making the number of files that need to load smaller. Although this tool might be a bit difficult to use due to the poor interface, once you play with it once or twice you will see it actually can be useful.

SquishIt can help with much more thanks to the Google Group and the discussion forum it features. You can talk about way more than CSS and JavaScript there, ask for advice and opinions and then code properly.

4. Minify Minify Logo and Description

This one is a PHP5 application that helps you with your CSS and JavaScript. What is does is that it combines several CSS and JavaScript files removing white space and comments and exports them with gzip encoding and optimal client-side cache headers.

Basically, if you have 5 JavaScript files, they will all become one after you use Minify. The app is easy to use, eliminates HTTP requests and reduces CSS/JavaScript bandwidth by 70%.

The app is integrated in other projects as well. If you run WordPress, there are two plugins which enjoy the same features: WP Minify and W3 Total Cache.

5. JSMin 

JavaScript Minifier works pretty much as Minify, only it does not combine multiple files together. The only thing it does is that it removes the white space and comments from a JavaScript page. The official website of the tool says the app helps reduce the file size by half and encourages a more expressive programming style. JavaScript Minifier does not modify anything else in your code and it will not ruin it, so that the script will run properly.

6. Google Closure Compiler

Google’s tool is another one that basically cleans your code to allow faster loading time. This tool, however, does efficiently correct and remove a wide range of common coding errors in JavaScript.

The Compiler includes a huge JavaScript library, tested on several browsers and computers, a style checker and fixer and a JS optimizer. Google’s tool is very powerful and works perfectly, tidying up each of your JavaScript pages until nothing else can be done to it.

7. YUI Compressor YUI Compressor Logo

Although Yahoo! has fallen behind lately, their developer network still does a bit of a good work. YUI Compressor is one of their products which, as the name says, compresses your files fast and safe. YUI works both with CSS and JavaScript and proclaims itself as being better than competitors such as Packer or JSMin (presented above). The goal of the application is to preserve the qualities of the code and to only modify what is not working properly.

With Yahoo’s tool we end the list of CSS/JavaScript compressors which help your page load faster. Most of them are very easy to use and you won’t even have to spend much time optimizing your page, but it is a good idea to do it before uploading the final version of the site. Don’t forget that loading time is very important for both you and the visitors and not being able to hold a high standard might not help you too much. Therefore you should try out each of these tools and see which one of them works better for you.

Further reading

Speed Up Your Page With Google Analytics on WebMonkey

5 Tools to Speed Up your Website on RackAid

Tools to Speed Up Your Site on SEO Gadget

For Further Reading: Create Your Own Premium Membership WordPress Blog – Part 1/3

Create Your Own Premium Membership WordPress Blog – Part 1/3

Simon’s Google Doodle – HTML5 + JS jQuery Game

Simon’s Google Doodle – HTML5 + JS jQuery Game

jQuery Plugin Development: Hover to Reveal Masked Password

jQuery Plugin Development: Hover to Reveal Masked Password

17 CSS/HTML Effects with Cross-Browsing Alternatives

17 CSS/HTML Effects with Cross-Browsing Alternatives

 Did you enjoy this article and found it useful?

Get even more from us:

Follow @1stwebdesigner  Get Our RSS Feed Article was created by Christian Vasile 5

Articles

Visit Christian Vasile's Website | Follow Christian Vasile On Twitter

Christian Vasile is an enthuziastic Romanian webdesigner currently living in Denmark. He is passionate for writing about graphic and webdesign, social media, blogging and freelancing and features articles on 1stwebdesigner.com since early September 2011. You can follow him on Twitter at @christianvasile. Free Website    10 Brilliant Comments - Join Discussion Now! Francois10

I like to use pingdomtools to see which element take long time to load and the detail of all element within a page. thanks for your list :)

Reply Webstandard-Blog9

Nice collection, but if you want some ressources more don’t miss Performance Tools (part 1) and Monitoring and Analysis (part2).

Reply Florida Web Design8

Really nice tools and very helpful because sometimes it becomes to tedious to wait for the site loading

Reply webdesigntips@ymail.com7

Christian Vasile thanks for suggest these tools…but can you suggest best page speed checker tools so we can easily check our page’s speed.

Reply Ryan6

My afterthought: JSLint code quality tool. Got triggered by the “Google Closure Compiler” ;)

Reply Ryan5

For the more .net inclined users on here I would recommend the Microsoft AJAX minifier. Minifies js and css. Beauty of it is you can integrate it into your build process. YUI min is my compressor of choice but if you are using .net I would certainly recommend Microsoft’s version.

Reply Andrew Groat4

Thanks Christian,

I’ve been exploring options for improving the efficiency of a webapp for a company, so these will be handy.

It’s a large scale financial software with over 20 HTTP requests :-S Ouch!

Reply Luiz Felipe3

Very good article.
Thanks.

PS.: Please, add share button on the page, like Twitter, Facebook and G+.

Reply Nora Reed2

Nice Article! As a designer this would be useful! thanks :)

Reply Waco Webdesign1

I also use Firefox Pagespeed Addon

Reply  Add Your Own Brilliant Comment: Click here to cancel reply. Name (required): E-Mail (required): Website: Comment:

Tags allowed:

Read more about other advertisment options

  Get Our RSS Feed For Free! 20,997 Subscribers

What Is RSS? Check other subscription options!

  Follow Us On Twitter: Follow @1stwebdesigner *Maybe I shared this already, but loving this guide - Content curation in 13 minutes a day http://t.co/qrKNKbPl

1 day ago *Got kids?Get some help on Web - 5 Web Apps for Managing Your Parents' Computer Troubles http://t.co/eL7RRFnH

4 days ago The World's Top Universities 2011 - Forbes http://t.co/aaRtzoRD

5 days ago Steve Jobs in his own words http://t.co/gGdebcAS

6 days ago R.I.P Steve Jobs, You will be Missed: on.fb.me/n1BJ5u [Join in, share your apple stories] RT and remember Jobs #SteveJobs #Apple

7 days ago Q: When Will Quora Release An iPhone App? A: Now. @TechCrunch http://t.co/g7YYf1Ss

8 days ago Keyword-Level Demographics @SEOmoz http://t.co/rThCeQZl

8 days ago Finally Google Analytics real time stats!! - What’s happening on your site right now? http://t.co/kZNr02JU

9 days ago 22 Essential Tools for Testing Your Website's Usability http://t.co/jZGxVywT

9 days ago @_SamCross @ThomasEMcGee @MariahHumphries @doubletapgreg @mosaik @smudgethefirst Thank you for replies :) @senri_i_am_red

9 days ago   Help Us & Leave Feedback! Do you have an excellent article idea you would like to read about here? Share it! Do you have some interesting tips how we could improve our site? Something missing here? Help us make this blog a better place, leave feedback!

 We would love to hear from you!

Be active! Write us now!

 Go To Top  ©2011 1stwebdesigner – Graphic and Web Design Blog. Design by Dainis Graveris. WordPress Theme by Daniel KurdoghlianPage loaded in 0.229 seconds.



View the
Original article

No comments:

Post a Comment