O'Reilly logo

PhantomJS Cookbook by Rob Friesel

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

Generating an appcache manifest

This recipe expands on our usage of confess.js and shows how to use it to generate an application cache (appcache) manifest for our web applications.

Getting ready

To run this recipe, we will need a target URL. We will use confess.js to analyze the site and produce an appcache manifest.

Note

Details about how to obtain confess.js are included in the Listing CSS properties recipe earlier in this chapter.

Lastly, the script in this recipe runs against the demo site that is included with the book's sample code repository. To run that demo site, we must have Node.js installed. In a separate terminal, change to the phantomjs-sandbox directory (in the sample code's directory), and start the app with the following command: ...

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