M
Manne
I'm looking for a library of practical JavaScript examples. Can you
recommend any?
Thanks for your time.
recommend any?
Thanks for your time.
Manne said:I'm looking for a library of practical JavaScript examples. Can you
recommend any?
Manne said:I'm looking for a library of practical JavaScript examples. Can you
recommend any?
news:comp.lang.javascript said:I'm looking for a library of practical JavaScript examples. Can you
recommend any?
Dr said:Therefore, use the
sort of library that allows you substantially to select, as an
author, only code which will be executed, and avoid the sort which
provides only vast multi-purpose chunks.
Two points:
1) In many cases, you can't determine which code will be executed. You can
often only determine which code can _possibly_ be executed.
2) If 5 different pages each use 50% of a 10k "multi-purpose chunk" of code,
it is better to deliver the 10k chunk once and let the browser cache it (10k
total download) vs. delivering 5k of page-specific code 5 times (25k total
downloaded).
Dr said:It is bad, for example, to import a complete
function DateObjectFromString(Str, WhichOfVeryManyFormats)
into a page which will only use a single hard-coded value for the
second argument.
If all five pages will be fetched. But the longer it takes for the
first page to be fetched, the more likely the reader is to give up and
go elsewhere.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.