FireSize icon indicating copy to clipboard operation
FireSize copied to clipboard

Handle images in CSS too

Open adamschwartz opened this issue 10 years ago • 2 comments

@zackbloom I noticed http://alexstillman.co uses FireSize but is not getting the benefit since his background image is specified in CSS. Do you think it’s feasible to replace those URLs too?

adamschwartz avatar Aug 20 '15 20:08 adamschwartz

Is it possible to read the urls in an external css file, and replace the values, before the images are loaded? Apparently it's somewhat possible to get an event when the styles are loaded (http://www.phpied.com/when-is-a-stylesheet-really-loaded/), but my guess is that would be fired after the browser begins to load the images. We can certainly test it to confirm though.

zackbloom avatar Aug 20 '15 20:08 zackbloom

Cool, thx. I’ll look into that resource.

adamschwartz avatar Aug 20 '15 20:08 adamschwartz