4 ms·
if your js is small, you can avoid two of the costs by inlining it.
by forgotmypw23 7y ago
if your js is small, you can avoid two of the costs by inlining it.
- biryani_chicken 7y agoAnd download it every time? It is better to download it once and tell the browser to cache it.
- horsawlarway 7y agoIf 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.