On Nov 21, 2007 3:29 AM, tbela99 <[EMAIL PROTECTED]> wrote:
>
> hello all the guys from the prototype core.
>
> I really adore what you're doing. it changed the way I was programming
> javascript for a while. anyway I have some features that will please
> me if they are incorporated in the prototype.js file.
>
> the first is the ability to dynamically load javascript and css into
> the page. ...

One thing to keep in mind is that using several http requests (even
when content is cached) instead of using one is a lot slower.

I use a script that combines js and css files on the server side and
serves the combined files out of a public cache directory.  You can
use firebug + yslow to compare the no-cache and prime-cache cases for
separate and combined files.

For developers, yes, keeping files separate and dependencies mapped
can be very quick.  That is why I keep a directory called "global"
where I keep lots of files with small snippets.  The snippets are
compiled into one file for global use.  In my environment, firebug +
yslow showed an enormous improvement with 1 http request instead of 12
http requests.  The primed-cache comparison also showed improvement.

- Ken Snyder

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to