javascript - Is the downside of coding styles (css) in jQuery genuinely prohibitive? -
i reading article non-compatibility of css, when occurred me maybe should writing of css in jquery. aside javascript-disabled browsers, ajax website isn't going support anyway, what's downside?
the benefit, aside greater browser support, use of variables throughout (pseudo) css file. control color across borders , backgrounds etc. in single place. know has been done backend programming, i'm considering front-end. wanna talk me off ledge?
the article reading here, if you're interested: http://www.impressivewebs.com/buggy-css-selectors-cross-browser-jquery/
javascript-disabled browsers, say. more people have javascript turned off css turned off.
secondly, imagine performance worse on clients-end. in general, css goes @ top. means browser can style html loads, rather waiting html load. javascript, unless there really fancy tricks don't it, need wait html load before styling, resulting in fouc also, browsers heavily optimised execute css efficiently possible.
there more reasons... plenty more.
Comments
Post a Comment