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
Tags: compress, gzip, htaccess, jQuery, optimization, Prototype
Posted in Optimization, Tips and Tricks | 12 Comments »
To using prototype, first we must download it. It’s only 1 file named ‘prototype.js‘. It is about 120kb, a bit too large for a website. but don’t worry, because the 120kb will do more… besides that, we can compress it using any packer. I won’t describe how to compress the file here. If [...]
August 2nd, 2008 by Admin
Tags: basic, hello world, Prototype, using
Posted in Prototype | No Comments »
The dollar dollar function is Prototype’s CSS Selector Engine. The ‘$$()’ function returns all css match elements. It was used quite same as the CSS selector. For example, to get all tags with the class “myclass”, we use the following:
$$(“.myclass”)
This function will return the array of elements match the selector string. And We can make [...]
July 26th, 2008 by Admin
Tags: css, dollar, function, Prototype
Posted in Prototype | No Comments »