Compress JavaScript with Gzip

The main problem when we are using ajax framework is because of their big size. Of course, it will extremely slow down the sites load time. For example, if we use the standard jQuery, it’s almost 100Kb. It’s even more if we use the complete Prototype and Scriptaculous that will cost around 150Kb.
This is really […]

November 7th, 2008 by Admin

Start Using jQuery

jQuery main function is the ‘$(document).ready() function’. Although it’s many way to start jQuery, Always use this function to start using jQuery is good. example:
$(document).ready(function() {
$(’.header-company’).addClass(’highlight’);
});
This will add class named ‘highlight’ to element that have ‘header-company’ class. This is used generally for changing / adding class for CSS. So, when the document was loaded, the […]

June 7th, 2008 by Admin

jQuery feature

jQuery provides many general function to build a rich pages. jQuery feature:

Ajax
jQuery is one of the ajax framework that used mostly by many web master.
Shortcut access to DOM
instead of using bulk of code in accessing DOM, jQuery have the shortcut.
Manipulating the element content
With jQuery, we can freely insert, update and delete every HTML element.
Easy event […]

May 15th, 2008 by Admin