Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Fix for bug where script might not be called#181

Merged
scottjehl merged 1 commit intofilamentgroup:masterfrom
fatjester:patch-2
Dec 19, 2016
Merged

Fix for bug where script might not be called#181
scottjehl merged 1 commit intofilamentgroup:masterfrom
fatjester:patch-2

Conversation

@fatjester
Copy link
Copy Markdown
Contributor

Firefox and IE/Edge won't load links that appear after the polyfill.
What I think has been happening is the w.load event fires and clears the "run" interval before it has a chance to load styles that occur in between the last interval.
This addition calls the rp.poly function one last time to make sure it catches any that occur within that interval gap.
Original demo with link after polyfill (non-working in Firefox, IE, Edge):
http://s.codepen.io/fatjester/debug/gMMrxv

Modified version with link after polyfill (is working in Firefox, IE, Edge):
http://s.codepen.io/fatjester/debug/gMMrxv
#180

Firefox and IE/Edge won't load links that appear after the polyfill.
What I think has been happening is the w.load event fires and clears the "run" interval before it has a chance to load styles that occur in between the last interval.
This addition calls the rp.poly function one last time to make sure it catches any that occur within that interval gap.
Original demo with link after polyfill (non-working in Firefox, IE, Edge):
http://s.codepen.io/fatjester/debug/gMMrxv

Modified version with link after polyfill (is working in Firefox, IE, Edge):
http://s.codepen.io/fatjester/debug/gMMrxv

filamentgroup#180
@scottjehl
Copy link
Copy Markdown
Member

Huh, interesting! Thanks. This does sound promising. I'll take a look.

@nigrosimone
Copy link
Copy Markdown

@scottjehl Any news on this PR?

@scottjehl
Copy link
Copy Markdown
Member

This makes sense as a catchall for sure. thanks for the reminder. Merging

@scottjehl scottjehl merged commit c04222b into filamentgroup:master Dec 19, 2016
@janjaap
Copy link
Copy Markdown

janjaap commented Dec 28, 2016

@scottjehl Can this merge be tagged?

@janjaap
Copy link
Copy Markdown

janjaap commented Jan 3, 2017

Anyone?

@janjaap
Copy link
Copy Markdown

janjaap commented Jan 3, 2017

@scottjehl @zachleat ?

@scottjehl
Copy link
Copy Markdown
Member

tagged here and on npm. thanks for the followup.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants