Comments (10)
Great idea but isn't this what a browser cache should be doing?
from cdnjs.
Correct, but a browser cannot make the assumption that file is not modified on the server so it has to send off a request. Because we know that files don't change on a CDN and we know the file paths stay the same we can make the assumption before any http request are made at all. The extension also aids development when using force refresh plus having a local copy of all the popular javascript libraries.
from cdnjs.
Is the source code available? https://github.com/cdnjs/chrome-extension seems empty
It looks like this will be quite an easy port to the mozilla AddOn SDK
from cdnjs.
hey @graingert, will push up the source code in a few hours. I only mocked it together as a proof of concept. So will quickly refactor it.
I've also nearly completed the build server which auto generates the crx everytime the cdn repo is updated which then sends out update notifications to browsers.
It uses chrome web request so hopefully firefox has an equivalent
from cdnjs.
I was thinking of adding in a extension page that allows you to peruse the libraries locally to
from cdnjs.
It's probably a good idea to move the discussion into separate issues, eg missing source code, App SDK port, settings window/UI
from cdnjs.
Ye good idea, I will push the extension and the build server into separate repos and update this comment thread when I'm done.
from cdnjs.
Heres my original mess thus far
https://github.com/cdnjs/browser-extension
uses node to download the repo, extract it into extension, white list the resources and pack it into crx file
from cdnjs.
The download link on the info page seems broken.
from cdnjs.
Sorry the link is back up @auzigog
from cdnjs.
Related Issues (20)
- I don't understand HOT 1
- amis库缺少必要的文件 HOT 1
- git-sync is failing HOT 11
- Sponsoring your project HOT 6
- how to add files to cdnjs, or some aplication like cdns can upload javascript file HOT 1
- Fonts from "primevue" library not in the cdnjs distribution HOT 4
- Some versions of devextreme are missed HOT 9
- Loading Files Issue (Egypt) HOT 2
- Sponsoring HOT 1
- DevExtreme 23.1.3: missing *.js files HOT 1
- SRI hashes changed on multiple libraries yesterday and some SRI hashes are wrong HOT 30
- https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.34/moment-timezone-with-data.min.js 404 / missing HOT 9
- Some versions of hexo-theme-anzhiyu are missing HOT 3
- SRI hash for moment.js/2.29.4 does not match HOT 3
- cd pentmenu
- How to set the Video Autoplay? HOT 1
- Advertising HOT 2
- cdnjsdl HOT 2
- CDN公共库 HOT 2
- Include package deprecation information in API response HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdnjs.