AJAX Made Easy - Learn AJAX

AJAX Categories

 
AJAX Home AJAX-Tips

Using Compressor to Load Ajax Faster

Author: admin    |    Published: 13th Feb 2008     |    Read: 364 times    |  Add Comment
Filed in: AJAX-Tips





One of the biggest challenges of any developer is to enable the webpage to all visitors as fast as possible. Unfortunately, our knowledge always precedes our available technology. Although we can create very interactive websites with the ability to watch videos while having to look for information on the webpage itself, it requires advanced technologies that every one cannot afford.


Until today, there are still people who rely on dial-up so that they can access the net. Most of today’s websites are optimized for broadband speed but the broadband speed still needs some work so that people can access the website faster. Although Ajax already uses lesser bandwidth, the fact that we can even make it faster opens up so many possibilities in web development and more information for users.


HTTP Overhead Removal


In loading the webpage, the heading will always be the first one to be rendered in the website. In browser based processes, the server will look for the heading and render them in the website. That does not exempt Ajax for this type of rendering. It is just smart thinking or standard protocol that a webpage will have a HTTP head for proper identification.


However, Ajax should not be able to have a speedy rendering. Ajax has the ability to render parallel information towards the client but with the presence of an HTTP Overhead, the client and the server will only communicate in one way. Removing the overhead and changing it with a simple tag will enable parallel communication.


Building Static Content


Static content in information transfer refers to the ability of either the server or client to stream information faster. This could be done by giving all the information at once instead of rendering the data one by one. This is a problem especially when you are dealing with a lot of information in one request. The program will definitely be crippled if the information is too much. That is why when building static content, developers has to compress the information before they are released to the client.


There are so many compressing programs especially in JavaScript languages that could be used and compressed. In an Ajax based application, the information are usually transferred as CSS which is already a lightweight component. But when the user has the ability in compressing the information more, CSS could load information faster. And when they use the program CSS will render everything in one shot so Ajax should be able to load the information without even refreshing the webpage when the client requests for it.


The key component in optimizing your website is selecting the right compressor for CSS and JavaScript. There are two tools that I know of and use that looks really efficient in this category: gzip and shrinksafe. You might want to check those out if you have a large Ajax based webpage and combine them with the previously mentioned practice for faster loading websites.





Post Comment


You need to Login to post your comment...

Click here to login

Title:

 
Comment:




Site Login

 

Sponsored Links

 

Related AJAX Articles

 » Enhancing Ajax Based Mash-up Application Security
 » MVC1 vs. MVC2 Vying for Ajax
 » Google’s AxsJax for Ajax Applications
 » SDLC Methodologies for Ajax
 » Things Everyone Needs to Know about Ajax
 » XML on Ajax
 » ActiveXObject in Ajax
 » Java Frameworks for Ajax
 » Oracle Development Kits for Ajax
 » Ajax Design Approach
 

Latest AJAX Articles

 

Popular AJAX Articles