Re:Skypack – A new kind of JavaScript delivery network
by ss3000 on Monday July 13, 2020 @06:49PM
(#23826514)
Yeah, I think a service like this might be very useful for quick prototyping and proving out an MVP thanks to the native es6 modules, but I personally wouldn't rely on it for anything critical.
Coincidentally jspm.dev, a similar ES modules CDN in this space recently released a new version as well: https://jspm.org/jspm-dev-release
Their release post had a lot more technical details (including their strategy for code splitting which is critical for the production use case) so I'm inclined to trust them a little bit more for production use cases. Curious where I could read more about the architecture behind Skypack?
Re:Skypack – A new kind of JavaScript delivery network
by somishere on Monday July 13, 2020 @08:14PM
(#23827185)
Not that code-splitting is generally an issue with prototyping, but you can easily use native es6 modules straight from github (or npm) via services like jsdelivr.
e.g to load lodash's es6 defer module (targeting a specific commit): https://cdn.jsdelivr.net/gh/lodash/lodash@898b378f06/defer.j...
^^ to be used in an import statement or <script type="module">
[edit: example]
Re:Skypack – A new kind of JavaScript delivery network
by mh- on Monday July 13, 2020 @08:29PM
(#23827279)
hey Billy. I run CDNs @ Optimizely. If you ever see something, please reach out. (My Twitter is in my profile if you want to DM.)
edit to add: I don't disagree with anything you wrote. :)
Re:Skypack – A new kind of JavaScript delivery network
by billyhoffman on Monday July 13, 2020 @10:57PM
(#23828000)
Hot damn! Will do
While I appreciate the free service, I work in the web performance space. I've seen third party widgets from big name companies like Optimizely, Tealium, Pubmatic, and Adobe have slow response times for critical content, delaying the entire waterfall for major sites. Its hard for the big companies to whom you actually pay money to get this consistently right in a way that doesn't slow down the page.
We've had a ton of people taking cracks at this. From Google and Microsoft with their "Ajax" CDNs a decade ago, to unpkg and Cloudflare. And yet I still have not seen any of these special JavaScript-specific CDNs ever beat a vanilla CDN dumbly serving JS packages that you yourself have bundled and optimized under normal site traffic.