O'Reilly logo

jQuery Mobile Web Development Essentials Second Edition by Andy Matthews, Raymond Camden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with multiple files

In an ideal world, we could build an entire website with one file, never have to perform revisions, and be done with every project by 2 P.M. on Friday. But in the real world we have to deal with lots of files, lots of revisions, and, unfortunately, lots of work. In the earlier code snippet, you saw how we could include two pages within one file. jQuery Mobile handles this easily enough. But you can imagine that this would get unwieldy after a while. While we could include ten, twenty, even thirty pages, this is going to make the file difficult to work with and make the initial download for the user that much slower.

To work with multiple pages, and files, all we need to do is make a simple link to other files in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required