[development] replace drupal.js with prototype.js?
Richard Archer
drupal.org at juggernaut.com.au
Wed Nov 16 01:49:07 UTC 2005
At 11:34 AM +1100 16/11/05, Jeremy Epstein wrote:
>Prototype does indeed seem to be a very light, clean, and extensible
>library: but nonetheless, it is nowhere near as light as drupal.js.
>Quick comparison:
>
>Drupal.js: 281 lines, 6.21KB
>Prototype.js: 1039 lines, 27.29KB
All the Drupal .js files combines come to 18 kB.
Is it possible to strip prototype down a bit?
There are a lot of comments in the file that wouldn't be needed
in a live site.
What about separating it into function-related files and just
sending the bits the page needs?
...R.
More information about the development
mailing list