Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hacknat
· 12y ago · 0 comments
It might be the most cached file on the internet. Pulling jQuery is hardly expensive. Especially if you're pulling it from the google cdn.
Comments
[–]
aj
12y ago
Caching or CDN does not help in squeezing out JS performance (actual JS execution and not n/w performance)
[–]
hacknat
OP
12y ago
You think that a page that loads jQuery but doesn't use most of it incurs a performance penalty? I'll grant there are a few initializations and dom checks that jQuery does, but it probably blocks for all of 20ms.
[–]
julien_c
12y ago
...which is significant.
[–]
talmand
12y ago
20ms is significant?
[–]
justatdotin
12y ago
caching won't help for libraries that want to have a particular version of jquery baked in ...