Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't strip rel=preload hints for resource types we don't optimize #1392
Right now if we see:
we will strip the preload hint. We should instead only be stripping hints for resources we optimize:
And we should only strip preload hints for images when image-rewriting is on, and options()->image_preserve_urls() is off.
Similar for css_preserve_urls() and the variety of css-rewriting options (mostly combine_css and rewrite_css and cache_extend_styles).
We'll have to be a little careful about curating the exact list of filters that trigger the stripping.
This was written this way because at the time hints didn't specify types.
We can extend this to add
Kind of a pain. Right now