This is a good challenge: make the flow Ben described before as simple as zipping a file for a developer. We are already working in something similar, I hope we can share it soon.
El viernes, 30 de enero de 2015, 21:22:21 (UTC+1), Dietrich Ayala escribió: > Sounds almost as simple as zipping some files up! ;) > > > > On Fri, Jan 30, 2015 at 12:20 PM, Benjamin Kelly <bke...@mozilla.com> wrote: > > On Fri, Jan 30, 2015 at 3:10 PM, Dietrich Ayala <auto...@gmail.com> wrote: > > > > > > What about dodgy network performance? > > A website-in-a-zip will be a single network request, which might perform far > better under some network conditions than many network requests. > > > > You can implement this in Service Workers. Intercept the fetch events for > individual resources, make a single fetch() for an archive blob, split it up > in the SW, stick the resources in the Cache individually. Then subsequent > fetch events find the individual resources in the Cache. (Similar to the > Hacks post I'm working on.) > > > Ben _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g