Problems with Async in FireFox?

123 views
Skip to first unread message

Kelly St. John

unread,
Dec 8, 2014, 5:58:48 PM12/8/14
to polym...@googlegroups.com
Has anyone been running into problems using polymer's `async` in FireFox?

I've posted the issue I'm running into on Stack Overflow for your reference:  http://stackoverflow.com/questions/27368519/polymer-async-not-working-in-firefox


Ian MacLeod

unread,
Dec 9, 2014, 1:59:46 PM12/9/14
to Kelly St. John, polym...@googlegroups.com
Hmm, the current behavior for async (without a timeout) is to just call requestAnimationFrame. Should be getting called

However, in your stack overflow post, where are you defining the namespace variable?

On Mon Dec 08 2014 at 2:58:50 PM Kelly St. John <ke...@qfin.net> wrote:
Has anyone been running into problems using polymer's `async` in FireFox?

I've posted the issue I'm running into on Stack Overflow for your reference:  http://stackoverflow.com/questions/27368519/polymer-async-not-working-in-firefox


Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/96aa4fb0-acb2-464d-959c-08bd017ee5d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kelly St. John

unread,
Dec 9, 2014, 2:14:12 PM12/9/14
to polym...@googlegroups.com, ke...@qfin.net
Hello Ian.  The javascript namespace is defined only as a best practice to manage local storage variables in an encapsulated fashion.  It is defined in an external js file loaded by index.html.  I've done some further testing and it appears 'populateLocalStorage' is in fact being called, but not asynchronously in FireFox.  It is being called before the datasource elements have received their ajax responses and handled them accordingly.  I'll restate that this is working as is in Chrome, but not in Firefox version 33.1.1 or 34.0.5.

Cheers
Kelly

Kelly St. John

unread,
Dec 9, 2014, 2:23:08 PM12/9/14
to polym...@googlegroups.com, ke...@qfin.net
ps:  To add further clarity, 'this.bugs' and 'this.snakes' are variables bound to exposed attributes of the snakesDS and bugsDS (i.e. custom polymer datasource elements).  The datasource elements are returning those values appropriately following processing the expected responses from core-ajax, the problem here is the timing of the call to 'populateLocalStorage' function in Firefox.

Kelly St. John

unread,
Dec 9, 2014, 2:25:46 PM12/9/14
to polym...@googlegroups.com, ke...@qfin.net
pps:  I have updated the stack overflow description to reflect that the function is in fact being called, just not asynchronously in Firefox as one would expect (and as it is handled in Chrome).

Kelly St. John

unread,
Dec 10, 2014, 5:25:46 PM12/10/14
to polym...@googlegroups.com, ke...@qfin.net
Has anyone run into these same issues with async calls on Firefox?  Am I in fact using async correctly in the example shown on SO?

Kelly  

Kelly St. John

unread,
Dec 11, 2014, 8:41:42 PM12/11/14
to polym...@googlegroups.com, ke...@qfin.net
See updated SO thread for the solution to this issue:  http://stackoverflow.com/questions/27368519/polymer-async-not-working-in-firefox
Reply all
Reply to author
Forward
0 new messages