Timeline for jQuery plugin for manipulating stylesheets
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 9, 2014 at 10:40 | vote | accept | jahu | ||
Oct 5, 2014 at 18:02 | history | edited | unor | CC BY-SA 3.0 |
small corrections, removed intro, shorter title
|
Oct 5, 2014 at 17:12 | answer | added | jahu | timeline score: 1 | |
Oct 5, 2014 at 7:29 | comment | added | Brock Adams |
I don't think you can do this in jQuery. The reason is that in many browsers, javascript cannot access all of the style sheets; you get an access violation for cross-domain, etc. ... But, if you just want to muck with inline <style> elements, that would be possible but it also be a pretty limited plugin. ... The Smart way to do things is to have one hosted (and cached) CSS file that has alternate classes. jQuery then adds and removes classes as desired. This would also give a performance boost over (re)writing styles.
|
|
Oct 4, 2014 at 17:57 | history | asked | jahu | CC BY-SA 3.0 |