How and where to put your own JS files in JQueryMobile web applications?
Some suggestions I found:
- only in the first page of the web app, usually index.html
- inside the JQM page
Which one is better approach?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After your jQuery Library and BEFORE your jQuery mobile library. I place all my script tags at the end of the body…but that’s not a must…
Why?: Because when you’re building your jQM application you’re going to want your event bindings to be defined before jQuery mobile gets initialized and fires the ‘mobileinit’ event and your first page’s ‘pageinit’ event.