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