Suppose I want to run some code once jQuery Mobile has finished rendering the UI. The mobileinit
event doesn't work since it's raised before this happens. A quick Google search seems to indicate that simply using $(document).ready
won't work with JQM; but I just tried it (called after mobileinit
) and it worked for me: my code ran and dynamically updated elements, etc. just fine. So I'm wondering, is there some reason I shouldn't be using it (it's unreliable or messes up JQM), or is the information out there about it not working simply inaccurate? What am I missing?
Update: See here for a demonstration.