These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:10 pm Advanced search

Offline simple test

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

Offline simple test

Postby greg69 » Thu Apr 08, 2010 9:16 pm

Hello all,

I am trying a simple test on the offline part of html 5 with this page :

Code: Select all
<!DOCTYPE html>
<html manifest="test.manifest">
<head>

</head>
<body>
   <img src="http://www.somewebsite.com/picture.jpg"/>
</body>
</html>


the manifest can't be simplier :

Code: Select all
CACHE MANIFEST
#v0.1


So the cache seems to be working well as i can access my web page even after disabling the web server providing it.

But the picture (stored somewhere else on the web) is not displayed.

Sure i can add it to the manifest but why is it necessary while i'm online ?
greg69
<h6>
 
Posts: 1
Joined: Thu Apr 08, 2010 9:01 pm

Re: Offline simple test

Postby zcorpan » Thu Mar 31, 2011 6:49 pm

It's for easier testing -- if you have a cache manifest, you'd want the images to be listed in it for them to work offline. Had it loaded when online, you probably wouldn't know that the image was missing from the manifest since everything looks OK.

If you don't want to list your images in the manifest but still want them to load when online, I think that's possible too but I don't know the manifest fu so you'll need to read a tutorial or the spec, or maybe http://diveintohtml5.org/offline.html
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest