Yes, it may be useful for something like inline CSS if we extend the attribute, but since HTTP cache-control headers serve well for external resources, `<link> and `<img>` don't benefit from the attribute.
Anyway, we'd like to focus on this `cachehint` attribute for `<script>` tag and don't currently plan to extend this attribute to other tags. On Friday, May 1, 2026 at 2:36:59 PM UTC Emilio Cobos Álvarez wrote: > Seems like this would also be useful for `<style>`, `<link>`, or even > `<img>` elements as well, right? > > Cheers, > -- Emilio > > On 5/1/26 7:39 AM, Chromestatus wrote: > > Chrome has some compilation caching layer for inline scripts, which > > identifies the cache-eligible scripts by heuristics. However, there were > > no ways for Web developers to tell the browser which scripts are > > temporary and which are universal among their sites. The new `cachehint` > > attribute provides a way to do it and helps developers speed up loading > > of their web sites. > > -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/f91b7879-bc4e-4681-a5d0-69fdf8c669e7n%40chromium.org.
