These are chat archives for jescalan/roots

1st
Jul 2016
David Eglin
@djeglin
Jul 01 2016 11:54
@jescalan I might well do that everntually. I am presently having issues getting it working on my static host, though, due to the fact that they CDN all the assets (including script files) and workers are bound by the same origin policy. They have a redirect in place for local URIs through to the CDN, but that seems to be breaking the loading of the worker, too :(
Works a treat locally though :P
Declan de Wet
@declandewet
Jul 01 2016 12:16
@djeglin what static host are you using?
Declan de Wet
@declandewet
Jul 01 2016 12:39
perhaps they expose a proxying feature you could make use of to bypass this :)
David Eglin
@djeglin
Jul 01 2016 13:47
Using Forge. Chatting to the guy that runs it... Sadly not a lot of documentation on this kind of stuff yet.
Daniel Box
@dbox
Jul 01 2016 14:29
@djeglin awesome. keep us posted. Have you looked into netlify?
David Eglin
@djeglin
Jul 01 2016 14:55
@dbox I have. Price point is quite a bit higher than Forge though.
I have found a sneaky way to "blob" the worker in I think. Just waiting on a deploy now
Will drop you a test link once its up so you can see how it is working
David Eglin
@djeglin
Jul 01 2016 15:02
It isn't really a great example at the moment, because there are only two dummy pages... But if you take a look in the console you can see what it is doing, anyway, just as a proof of concept: http://turtle-812.getforge.io
If there were more pages, you would see the worker doing more, obviously.
David Eglin
@djeglin
Jul 01 2016 15:23
(and if you feel like looking at what its actually storing, you can call prefetch.pages from the console to take a look)
Jeff Escalante
@jescalan
Jul 01 2016 15:51
nice, this is looking great so far @djeglin !
David Eglin
@djeglin
Jul 01 2016 15:54
It's fairly snappy... I guess my next issue is whether to / how to open source it and get it on NPM/Bower etc. Never really done that before, and the nature of this script requires the worker js to be output on its own and to know where it is, rather than just compiling / requiring it in with everything else. Would need to do some research.
Thanks, BTW, @jescalan
Jeff Escalante
@jescalan
Jul 01 2016 15:57
i can help you out with getting this polished up for publishing
if you extract it into a repo i'll work with you on it
David Eglin
@djeglin
Jul 01 2016 15:58
Thanks, @jescalan . I'm about to head out for the weekend, but it's definitely something I will take you up on next week.
Tom Kraak
@tkraak
Jul 01 2016 16:01
@trautmaa … you still trying to publish json?
Jeff Escalante
@jescalan
Jul 01 2016 17:13
sounds like a plan!
Kevin Bohinski
@kbohinski
Jul 01 2016 20:02
is there an easy way to integrate a js linter and babel into the compile or watch process?
Kevin Bohinski
@kbohinski
Jul 01 2016 20:17
@djeglin is there a significant diff between forge and firebase?