Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle images in CSS too #1

Open
adamschwartz opened this issue Aug 20, 2015 · 2 comments
Open

Handle images in CSS too #1

adamschwartz opened this issue Aug 20, 2015 · 2 comments

Comments

@adamschwartz
Copy link

@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?

@zackbloom
Copy link
Contributor

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.

@adamschwartz
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants