-
Notifications
You must be signed in to change notification settings - Fork 7
How goes it? #2
Comments
It worked well, when I had it up and running. I can re-investigate it now, thought the problem is, we can only rewrite google and cdnjs urls and not file names themselves. Such that if they are pulling jquery.1-2.1.js from their own servers we can't actually make the assumption that it is the same as our cdn version. With a bit of help from the community, we could write a pretty rock solid version of the extension. It could also be nice to include the cdnjs home page locally such that you can have over 300 scripts even when your offline. |
https://bugs.webkit.org/show_bug.cgi?id=62015 Would be nice to start some momentum for such an idea |
Thanks for the reply!
May I suggest adding MS's CDN also? *.microsoft.com, & Skype.com use that CDN, & it is publicly usable. (Though I would caution anyone from using that CDN, due to a set of recent downtimes...)
Easily solved by MD5/SHA checksum hashtags, though elegant procedures might not be so easy. Maybe have a filename.MD5 text file in the same directory would help, or store those filesource-hash pairs somewhere? BTW, how am I certain that you are serving the correct non-adulterated versions at CDNJS? ;)
I'm not so sure if this the best approach; forcing a browser manufacturer to be responsible for what to build-in. I don't think they'd be happy either ;). Though I do love your & his root idea of long-term storage, & keeping the pre-digested bytecode version is ingenious... Brainstorms:
|
Perhaps use a library like basket.js, that caches scripts with localStorage? |
I'd like to encourage you guys to re-start this project when you have the time; I think it would make a great impact, as more & more websites use various libs. I thought of this being helpful several times in this thread: h5bp/html5-boilerplate#1327 (comment)
The text was updated successfully, but these errors were encountered: