An intro to Service Workers
– W3C Specification
Short answer: Deprecated
Long answer: AppCache is a Douchebag
http://alistapart.com/article/application-cache-is-a-douchebag
– caniuse.com
// Synchronous try { var value = myFunction(); console.log(value); } catch(err) { console.error(err); } // Promise myFunction() .then(function(value) { console.log(value); }) .catch(function(err) { console.error(err); });
// jQuery AJAX $.get('/some.json').done(function(data, status, xhr) { console.log(data); }); // Fetch API fetch('/some.json').then(function(response) { console.log(response); })
By Peter Browne