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

When is the polyfill executed? How to refresh? #56

Open
codeofsumit opened this issue Oct 2, 2014 · 3 comments
Open

When is the polyfill executed? How to refresh? #56

codeofsumit opened this issue Oct 2, 2014 · 3 comments

Comments

@codeofsumit
Copy link

I'm building a new framework with the mobile-first, progressive enhancement approach.

Mobile-first means I need to use workarounds for media-queries and for convenience and maintenance, I chose respond.js.
I think your polyfill is executing earlier than respond.js, which makes background-images cover the "mobile version" of the elements. Once respond.js hits, most elements are enlarged.

So in order for this polyfill and respond.js working nicely together I need to either load the polyfill after respond.js hits, or I need to refresh the polyfill calculations after respond.js is executed.

Any advice on that one is very much appreciated.

And great work, btw! ;-)

@codeofsumit
Copy link
Author

resizing the browser window will update the calculations to correctly enlarge the image. Is there any way to force a polyfill-refresh via JS?
I could imagine to trigger the browsers resize event (via jQuery for example) but I don't know if the polyfill listens to that event.
EDIT: triggering the resize event doesn't seem to work

@codeofsumit
Copy link
Author

OK, this may be irrelevant. I just tested on a XP machine and everything is fine there. Seems like IE11 in IE8-mode is the problem.

@fotisp
Copy link

fotisp commented May 25, 2015

I am having this issue in IE 8 on Win 7, it requires a slight resize of the browser for the images to appear

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

No branches or pull requests

2 participants