Comments (2)
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.
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)
- meta description 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 bootstrap3.