[Phpwm] javascript content in a page

Greg Jones greg.jones at gmail.com
Thu Nov 9 17:18:29 GMT 2006


> I've yet to see a limit to the ammount although (I believe) that there are
> loading implciations and obviously you're downloading these text files from
> the server so there's bandwidth issues / page loading times.
>
> I believe frameworks such as prototype and scriptalicious have seperate
> classes that can be loaded in as and when a application needs it.
Scriptaculous allows you to append the files you want to load to the
end of the scriptaculous.js link (?load=builder,effects for example)
and then the loader dynamically inserts the <link>s into the page
head. If you only ever use (say) effects in your app, then this will
save download time, but otherwise you're better off relying on the
server and browser being setup to cache sensibly.

Looking at the code that's being executed, and trying to optimise that
is probably a better first step if you think things need to be made
quicker.

Greg



More information about the Phpwm mailing list