Git Product home page Git Product logo

Comments (2)

rickparrish avatar rickparrish commented on July 22, 2024

It's easy to use a CDN for the jquery and bootstrap javascript code, and I've been meaning to update that for awhile, so I've just pushed a change that includes this. It'll fallback to a local copy of the .js for the extremely rare cases where the CDN is offline, so I didn't bother adding an option for it on the admin panel.

Using a CDN for CSS with local fallback isn't quite so easy...I'd bet that it's possible, but I can't think of how to do it off the top of my head. Once I find a good example of how to do this, I agree it would be a great idea to use a CDN for that as well.

Any reason why you think subdirectories for each theme would be easier? I find it simplest to load each theme on bootswatch, right-click the .css link, save target as, then select the file to replace. Having a subdirectory would require extra clicks to navigate around before saving.

from bootstrap3.

rickparrish avatar rickparrish commented on July 22, 2024

Found a pretty cool snippet at http://stackoverflow.com/a/17232679/342378 that allows for CDN fallback of the bootstrap css.

So now the theme selected by the site admin is loaded via the CDN with local fallback.

If the admin allows users to select their own theme, and a user does select a different theme, then that's still loaded locally...I'm not sure that the CDN can be used for this scenario due to the timing of when the check has to run.

I would guess most people disable the "other themes" menu, so probably not a huge deal anyway.

from bootstrap3.

Related Issues (2)

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.