[Phpwm] javascript content in a page

Phil Beynon phil at infolinkelectronics.co.uk
Thu Nov 9 17:38:37 GMT 2006


> > > Is there any limit to the amount of javascript that technically can be
> > > included in a page?
> > > I'm assuming no clashes between individual scripts etc.
> > > Or can you just keep on loading up a page with little features and
> > widgets
> > > and expect the users browser to happily process it all regardless?
> >
> >
> > There's no real limit to how much can be included, the browser will
> > just plough through it as fast as it can.
> > There are many things you can do to improve performance where js is
> > concerned, but to what lengths it is worth going obviously depends on
> > the scenario.
> >
> > Greg
> >
> > _______________________________________________
> > Phpwm mailing list
> > Phpwm at mailman.lug.org.uk
> > https://mailman.lug.org.uk/mailman/listinfo/phpwm
> >
>
> 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.
>

If you have the javascript in seperate linked files where possible though
doesnt the browser thus cache them, so they don't have to be repeatedly
downloaded?

Phil




More information about the Phpwm mailing list