Ricardo Garcia wrote:
hi , in some of my pages
There are no (Internet) pages, you mean HTML documents,
more often displayed continuously instead of pagewise.
i use several files .js, and i wanted to know how to get the highest
performance:
- Joint all my .js in just one, so the http request nonpersistant get
very accelerated
Don't. You would include more features (and force the user to download
the respective source code) that you don't use than you actually use.
- One file per script, so in many pages i only download the ones that
i
I don't understand what you mean by "script", maybe you mean "function" or
"method". If so, group functions/methods serving a similar purpose and
preferably those that depend on each other in one script file, so you have
to include only those functions that you actually use. You can find
examples at <http://pointedears.de/scripts/>.
HTH
PointedEars
--
Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.