Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
forgotmypw23
· 6y ago · 0 comments
if your js is small, you can avoid two of the costs by inlining it.
Comments
[–]
biryani_chicken
6y ago
And download it every time? It is better to download it once and tell the browser to cache it.
[–]
horsawlarway
6y ago
If it's inlined into another static resource, why not just cache that? HTML with an inlined script is just as valid a cache object as the plain script itself.