Comments on: Making a Simple Site Work Offline with ServiceWorker https://css-tricks.com/serviceworker-for-offline/ Tips, Tricks, and Techniques on using Cascading Style Sheets. Mon, 08 May 2017 13:10:07 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: AJ https://css-tricks.com/serviceworker-for-offline/#comment-1598026 Mon, 16 Nov 2015 11:08:36 +0000 http://css-tricks.com/?p=210533#comment-1598026 In reply to Johnny.

Hey, for what it’s worth, the tutorial here works, just not the demo site. :)

]]>
By: AJ https://css-tricks.com/serviceworker-for-offline/#comment-1597997 Fri, 13 Nov 2015 12:14:43 +0000 http://css-tricks.com/?p=210533#comment-1597997 In reply to Johnny.

Hi Chris,

I too can’t seem to make it work. Having the same problem as Johnny. I tried it on Chrome 46.0.2490.86 (64-bit) and Chrome 48.0.2563.0 canary (64-bit).

I’m not sure what other details to give, but let me know and I’ll gladly give more info. :)

Thanks!

]]>
By: Jeffrey Sweeney https://css-tricks.com/serviceworker-for-offline/#comment-1597949 Wed, 11 Nov 2015 22:28:19 +0000 http://css-tricks.com/?p=210533#comment-1597949 Safari’s lack of “enthusiasm” is the only thing preventing me from further experimenting with Service Workers.
From Apple’s POV, it makes sense to not shoot themselves in the foot by allowing easy offline-capable webapps, possibly among other reasons I’m sure. It just sucks for web developers.

However, seeing that even Internet Explorer is considering to support Service Workers, it might be time to move forward without Safari.

]]>
By: Chris Coyier https://css-tricks.com/serviceworker-for-offline/#comment-1597936 Wed, 11 Nov 2015 17:51:16 +0000 http://css-tricks.com/?p=210533#comment-1597936 In reply to Agop.

@Šime: width: -moz-max-content! cool! Way better than a magic number. Plus I guess it would only do it if if it needed to get wider.

]]>
By: Šime Vidas https://css-tricks.com/serviceworker-for-offline/#comment-1597916 Wed, 11 Nov 2015 03:58:28 +0000 http://css-tricks.com/?p=210533#comment-1597916 In reply to Agop.

CSS-Tricks can make code blocks expandable on hover with a few CSS styles: https://www.youtube.com/watch?v=w79Uze8sTrU

]]>
By: Nicolas Bevacqua https://css-tricks.com/serviceworker-for-offline/#comment-1597914 Tue, 10 Nov 2015 23:41:02 +0000 http://css-tricks.com/?p=210533#comment-1597914 In reply to Benjamin Knight.

That’s about how long it takes to implement ServiceWorker without any libraries, and you get to implement it everywhere once you learn the basics (not just sites using Polymer)

]]>
By: Luke https://css-tricks.com/serviceworker-for-offline/#comment-1597913 Tue, 10 Nov 2015 22:51:51 +0000 http://css-tricks.com/?p=210533#comment-1597913 In reply to Agop.

Hi Chris,
What about a toggle that allows us to 100% the main content to view larger code blocks like this. Dev-tooling is fine, but having it as part of your site function would be great.

]]>
By: Benjamin Knight https://css-tricks.com/serviceworker-for-offline/#comment-1597912 Tue, 10 Nov 2015 19:41:38 +0000 http://css-tricks.com/?p=210533#comment-1597912 In reply to Benjamin Knight.

the <platinum-sw-register> element*

]]>
By: Benjamin Knight https://css-tricks.com/serviceworker-for-offline/#comment-1597911 Tue, 10 Nov 2015 19:40:46 +0000 http://css-tricks.com/?p=210533#comment-1597911 Polymer makes this use case incredibly easy with the element. Took me about 5 minutes to have a 100% offline simple site.

]]>
By: Chris Coyier https://css-tricks.com/serviceworker-for-offline/#comment-1597909 Tue, 10 Nov 2015 17:33:13 +0000 http://css-tricks.com/?p=210533#comment-1597909 In reply to Johnny.

This is what I’m getting:

img

But I’ve seen kinda inconsistent results sometimes and different results when hard-refreshing rather than normal refreshing.

]]>
By: Chris Coyier https://css-tricks.com/serviceworker-for-offline/#comment-1597908 Tue, 10 Nov 2015 17:28:22 +0000 http://css-tricks.com/?p=210533#comment-1597908 In reply to Agop.

@Neal That’s the kinda CAN DO attitude I love!

]]>
By: Neal G https://css-tricks.com/serviceworker-for-offline/#comment-1597907 Tue, 10 Nov 2015 17:24:09 +0000 http://css-tricks.com/?p=210533#comment-1597907 In reply to Agop.

I was thinking the same thing as I was reading this. I used the Stylish browser plugin to hide Chris’ sidebar –

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain(“css-tricks.com”) {
.entry-unrelated { display: none !important; }
.blog-posts.grid-2-3 { width: 100% !important; }
}

]]>
By: Johnny https://css-tricks.com/serviceworker-for-offline/#comment-1597906 Tue, 10 Nov 2015 17:14:14 +0000 http://css-tricks.com/?p=210533#comment-1597906 I can’t seem to get the service worker to deliver the offline site on Chrome 47.0.2526.49 beta (64-bit) when I turn network throttling to Offline. The worker is registered, and upon inspection, it seems to be running, but Chrome just returns a “Unable to connect to the Internet” message.

]]>
By: Agop https://css-tricks.com/serviceworker-for-offline/#comment-1597904 Tue, 10 Nov 2015 16:42:26 +0000 http://css-tricks.com/?p=210533#comment-1597904 Slightly off topic, but the code in this article is very lengthy and impossible to read in the provided code views due to how narrow they are.

As for the technology itself? Absolutely awesome. Being able to write what is essentially a client-side proxy server is incredibly useful.

]]>