AJAX Loads Full Page
One thing I was confused about was why jQuerymobile uses ajax, but still loads the full page. I thought ajax was meant to only load part of a page so the whole page doesn't need to be loaded. This stackoverflow question had the answer (http://stackoverflow.com/questions/11252880/is-a-full-html-page-needed-when-loading-a-page-with-jquery-mobile). Basically it helps with SEO and prevents the page from breaking when the user refreshes.
Binding events on page load
jQuerymobile loads pages via ajax and thus has a unique page loading system. Many problem can arise because of this. This stack overflow post has a huge explanation of what's going on and how to solve some problems:http://stackoverflow.com/questions/14468659/jquery-mobile-document-ready-vs-page-events
No comments:
Post a Comment