4 ms·
There's an infinite performance gain for browsers that have javascript turned off or use noscript. Other than that, I'd say that doing this kind of stuff in CS
by ashray 13y ago
There's an infinite performance gain for browsers that have javascript turned off or use noscript.
Other than that, I'd say that doing this kind of stuff in CSS would by default be much faster in a web page context.
- ghostdiver 13y agoWhat if I don't want fixed dimensions? Maybe media queries could help a bit, but Javascript usage seems to be inevitable. ps. I didn't mean pure javascript solution anyway:)
- erichurkman 13y agoIf you don't care about older browsers [1], you can use Flexbox to do all sorts of dynamic, fluid positioning. [1] http://caniuse.com/flexbox http://caniuse.com/flexbox - it's in the current version of all browsers (some still prefixed).