Speed up access / offline support

What features do you want to be included next?

Speed up access / offline support

Postby andypiper » Mon Jan 19, 2009 6:27 pm

Have you thought about creating a manifest file for iWebKit's static elements (scripts and images)?
I've done this for one of the sites I've been developing and it seems to work OK. The technique is described in the "Safari Web Content Guide for iPhone OS" document on Apple's website.
andypiper
Admirer
Admirer
 
Posts: 25
Joined: Mon Jan 19, 2009 11:26 am

Re: Speed up access / offline support

Postby Christopher » Mon Jan 19, 2009 7:45 pm

could you explain what this means? that the wbsite gets cached on the iphone?
please search before posting!
User avatar
Christopher
Site Admin
Site Admin
 
Posts: 1154
Joined: Thu Dec 11, 2008 12:01 am
Location: France

Re: Speed up access / offline support

Postby andypiper » Mon Jan 19, 2009 11:08 pm

Well... not quite. The best way to understand it would be to read the relevant Apple document (the iPhone Web Development Guidelines)

Storing Data on the Client

There are several ways for a web application or website to store data on the client. You can use the JavaScript database APIs, described in Safari JavaScript Database Programming Guide, for storing application data or use the HTML 5 application cache for storing resources on the client so webpages continue to display offline when there is no network connection. You can also use the application cache to load webpages faster when there is a slow network connection. This chapter describes how to store data locally using this HTML 5 application cache.
andypiper
Admirer
Admirer
 
Posts: 25
Joined: Mon Jan 19, 2009 11:26 am

Re: Speed up access / offline support

Postby Christopher » Mon Jan 19, 2009 11:31 pm

That sounds very interesting. Ill take l look at it :)
please search before posting!
User avatar
Christopher
Site Admin
Site Admin
 
Posts: 1154
Joined: Thu Dec 11, 2008 12:01 am
Location: France

Re: Speed up access / offline support

Postby tarnfeld » Mon Mar 23, 2009 6:43 pm

Hey
I also looked at the apple developer doc's and came across that article... it uses javascript to cache selected files in a "manifest" that is a file that declairs all the files to be cached.... you can call a cache update via javascript.. but once the cache is created it means from now on those files are loaded locally so a WAY faster load time!

Only in safari 4+ and iPhone firmware 2.2.1+

If you want a link to the apple article i can give you one :)
Portfolio - http://tarnfeldweb.com
Tidy Design - http://tidydesign.com

Check me out ;)
ares wrote:In fact I wouldn't use tables at all.
User avatar
tarnfeld
Moderator
Moderator
 
Posts: 764
Joined: Tue Jan 27, 2009 7:29 pm
Location: Portsmouth, UK

Re: Speed up access / offline support

Postby Christopher » Wed Mar 25, 2009 1:28 am

sure thanks :)

this might be a great addition to the next version ;)
please search before posting!
User avatar
Christopher
Site Admin
Site Admin
 
Posts: 1154
Joined: Thu Dec 11, 2008 12:01 am
Location: France

Re: Speed up access / offline support

Postby Christopher » Mon Apr 27, 2009 8:20 pm

i looked at it but it is not possible to implend this cause the server settings need to be edited to serve the manifest files right. Experienced user will be able to do so and implent it themselfs but i don't want to add uselless things for the others.
please search before posting!
User avatar
Christopher
Site Admin
Site Admin
 
Posts: 1154
Joined: Thu Dec 11, 2008 12:01 am
Location: France

Re: Speed up access / offline support

Postby tarnfeld » Sun Jun 14, 2009 11:43 am

Yeah i agree...
Portfolio - http://tarnfeldweb.com
Tidy Design - http://tidydesign.com

Check me out ;)
ares wrote:In fact I wouldn't use tables at all.
User avatar
tarnfeld
Moderator
Moderator
 
Posts: 764
Joined: Tue Jan 27, 2009 7:29 pm
Location: Portsmouth, UK

Re: Speed up access / offline support

Postby tyrewebdesign » Sun Jun 14, 2009 6:28 pm

tarnfeld wrote:Hey
I also looked at the apple developer doc's and came across that article... it uses javascript to cache selected files in a "manifest" that is a file that declairs all the files to be cached.... you can call a cache update via javascript.. but once the cache is created it means from now on those files are loaded locally so a WAY faster load time!

Only in safari 4+ and iPhone firmware 2.2.1+

If you want a link to the apple article i can give you one :)


link please :D

I would consider myself a fairly advanced user, so i'l have to check and see if I can change the specific server settings.
MiPerch ~ Simple, Social, WebApp Development. Full site accessible only on iPhone or iPod Touch.
Image
tarnfeld wrote:Check me out ;)
User avatar
tyrewebdesign
Moderator
Moderator
 
Posts: 329
Joined: Tue May 19, 2009 12:47 am
Location: Canada

Re: Speed up access / offline support

Postby tarnfeld » Sun Jun 14, 2009 8:30 pm

It's not really that advanced to setup, you just add a head META tag to your pages and onload the browser will manifest, or store images/files that the site needs to operate..
Here is a link to the apple tutorial
http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/Client-SideStorage/Client-SideStorage.html

Hope this is any good to you :)
Portfolio - http://tarnfeldweb.com
Tidy Design - http://tidydesign.com

Check me out ;)
ares wrote:In fact I wouldn't use tables at all.
User avatar
tarnfeld
Moderator
Moderator
 
Posts: 764
Joined: Tue Jan 27, 2009 7:29 pm
Location: Portsmouth, UK

Next

Return to What would you like to see next

Who is online

Users browsing this forum: No registered users and 1 guest

cron