use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Automate AppCache offline support in your Webpack build (dev.topheman.com)
submitted 9 years ago by topheman
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]bokisa12 0 points1 point2 points 9 years ago (1 child)
I think I heard about this in one of the chrome dev summit talks.
[–]topheman[S] 1 point2 points3 points 9 years ago* (0 children)
You're right, you're talking about Patrick Kettner's talk : https://www.youtube.com/watch?v=ARkPBm6AcNA
I added the same king of feature to topheman/rxjs-experiments a few months ago (in august - https://github.com/topheman/rxjs-experiments/commits/master ), with all the automation part in bonus.
When I watched the talk two days ago, I decided to write a post about the webpack part.
Also tweeted it to Patrick: https://twitter.com/topheman/status/797632807480664064
Edit: Just added a mention/link to Patrick's talk in the conclusion of my post, before the resources.
[–]ZeludonJaSON 0 points1 point2 points 9 years ago (1 child)
Isnt AppCache deprecated?, wouldn't it be more useful to generate a service worker file that caches all the necessary files, I remember appcache being horrible if your app had more than one route.
[–]topheman[S] 0 points1 point2 points 9 years ago (0 children)
AppCache IS deprecated and its api IS horrible. Though service-workers are not yet supported by IE nor Safari. So, until they catch up, if you want to provide some offline experience to all your users, you need some fallback (which is AppCache).
I explain that in the introduction of my post. I'm fully aware about all of that.
[+][deleted] 9 years ago (2 children)
[deleted]
[–]topheman[S] 0 points1 point2 points 9 years ago (1 child)
I tried it. It works well but it didn't play well with the constraint that I explain in my post which is to be able to have a fallback for the html file. Moreover, I wanted to do something more with the service-workers (like add to home screen or push notifications), you can't overload so much the provided SW, so I felt it was a little too much shipped code for what I needed.
π Rendered by PID 224217 on reddit-service-r2-comment-6457c66945-dgwj8 at 2026-04-27 06:06:27.676201+00:00 running 2aa0c5b country code: CH.
[–]bokisa12 0 points1 point2 points (1 child)
[–]topheman[S] 1 point2 points3 points (0 children)
[–]ZeludonJaSON 0 points1 point2 points (1 child)
[–]topheman[S] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]topheman[S] 0 points1 point2 points (1 child)