Parsha Pourkhomami: JavaScript CSS | JSConf US 2015

1,843 views · Published 29 June 2015 · 30:09 · Indexed 12 November 2026

Channel: JSConf · 2015 · Science & Technology

Watch on YouTube

CSS has a number of deficiencies: no namespacing, dependency management, code isolation, or robust dead code elimination. It also has confusing cascading behavior and no way to share logic or constants with front-end code. We've created various hacks and alternative languages to resolve these issues, but the best solution has been right under our noses: JavaScript. By using JavaScript and its ecosystem, the require() module system gives us namespacing and dependency management, existing tools like UglifyJS can eliminate dead code, the confusing cascading behavior of CSS can be bypassed completely, and shared logic and constants can be written in one place. Take it a step further and we can polyfill CSS features, calculate critical path styles, and perform other mad science

More from this channel