You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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! ;-)
The text was updated successfully, but these errors were encountered:
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
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! ;-)
The text was updated successfully, but these errors were encountered: