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 struggling to get requireJs and Jquery Mobile to play along on my iPad (strangely desktop works fine) AND not sure if this is an issue at all:
I think the problem is related to Jquery Mobile being triggered way before doc.ready() is fired (pageinit event info here and/or mobileinit event info here ), while require uses doc.ready() (?)
My setup is like this:
a) Jquery
b) Jquery Mobile (depend Jquery)
c) Jquery Multiview (depend Jquery & Jquery Mobile )
My problem is, Jquery Mobile is initializing the page way before multiview has finished loading. Therefore the Jquery Mobile inital page events have all fired by the time multiview is done loading and starts listening for these events. So my page on iPad stays blank.
I'm not sure if above setup is correct, but I think it is. Still I have no way of telling "Jquery Mobile, please only start AFTER multiview has loaded".
I'm trying to fix this by using overrides.js to stop Jquery Mobile from automatically initializing. After a few hours of testing this seems to be the only way to get an alert to fire before JQM triggers initialization on iPad. Like I said, on desktop I don't have any problems.
So my issue would be a sort-of feature request for an async plugin trigger along side async js loading. Something like this:
And adding a custom event in the last plugin that depends on JQM (since it's my plugin, I can add easily :-). I'm listening for this event in my app.js controller and let JQM run from there. There still some weird things happening (one JQM widget not getting enhanced), but I'm not getting any critical errors anymore, so I'm fine until JQM 1.1.1. comes out.
I'm struggling to get requireJs and Jquery Mobile to play along on my iPad (strangely desktop works fine) AND not sure if this is an issue at all:
I think the problem is related to Jquery Mobile being triggered way before doc.ready() is fired (pageinit event info here and/or mobileinit event info here ), while require uses doc.ready() (?)
My setup is like this:
a) Jquery
b) Jquery Mobile (depend Jquery)
c) Jquery Multiview (depend Jquery & Jquery Mobile )
My main.js:
My problem is, Jquery Mobile is initializing the page way before multiview has finished loading. Therefore the Jquery Mobile inital page events have all fired by the time multiview is done loading and starts listening for these events. So my page on iPad stays blank.
I'm not sure if above setup is correct, but I think it is. Still I have no way of telling "Jquery Mobile, please only start AFTER multiview has loaded".
I'm trying to fix this by using overrides.js to stop Jquery Mobile from automatically initializing. After a few hours of testing this seems to be the only way to get an alert to fire before JQM triggers initialization on iPad. Like I said, on desktop I don't have any problems.
So my issue would be a sort-of feature request for an async plugin trigger along side async js loading. Something like this:
Which tells JQM to only trigger once multiview has been loaded. Not sure if this is a circular reference though...
Any other thoughts on my issue are also appreciated :-)
Thanks!
The text was updated successfully, but these errors were encountered: