P.Brian.Mackey
P.Brian.Mackey

Reputation: 44285

Making websites available offline

I am using HTML5 offline storage. The goal is to make the whole site available offline. So intuitively, no server requests means all the pages need to be on the client. The only way I know of to accomplish such a task is to make the site into one page then show hide portions with jquery when the user "navigates". Is there a better way?

Upvotes: 0

Views: 572

Answers (2)

ZippyV
ZippyV

Reputation: 13028

The html 5 offline spec allows multiple pages to be saved offline so you don't need to put all your content onto one page.

EDIT: link to spec http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html

Upvotes: 2

mikey
mikey

Reputation: 2072

Be careful that your jquery does not still point to the cloud. You'll need to save the relevant .js files locally.

N.B. If your whole site can be generated and saved as individual .html files then all you need to do is to save these files in the correct (relative) directory structure.

Upvotes: 1

Related Questions