Coder Social home page Coder Social logo

cdnjs - local loader about cdnjs HOT 10 CLOSED

cdnjs avatar cdnjs commented on May 5, 2024
cdnjs - local loader

from cdnjs.

Comments (10)

mokies avatar mokies commented on May 5, 2024

Great idea but isn't this what a browser cache should be doing?

from cdnjs.

thomasdavis avatar thomasdavis commented on May 5, 2024

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.

graingert avatar graingert commented on May 5, 2024

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.

thomasdavis avatar thomasdavis commented on May 5, 2024

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.

thomasdavis avatar thomasdavis commented on May 5, 2024

I was thinking of adding in a extension page that allows you to peruse the libraries locally to

from cdnjs.

graingert avatar graingert commented on May 5, 2024

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.

thomasdavis avatar thomasdavis commented on May 5, 2024

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.

thomasdavis avatar thomasdavis commented on May 5, 2024

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.

blanchardjeremy avatar blanchardjeremy commented on May 5, 2024

The download link on the info page seems broken.

from cdnjs.

thomasdavis avatar thomasdavis commented on May 5, 2024

Sorry the link is back up @auzigog

from cdnjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.