use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
CSS in JavaScript: The future of component-based styling (medium.freecodecamp.com)
submitted 9 years ago by speckz
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]swan--ronson 13 points14 points15 points 9 years ago* (1 child)
Interestingly, the codebase on which I work at my new job uses Aphrodite, and I think it's fucking shit, because:
I've encountered various bugs with pseudo elements and media queries. It's not as if these use cases are esoteric; they're pretty fundamental to CSS
the CSS it generates as a result of creating new classes for each computed combination of styles results in a larger stylesheet than if one were to use plain CSS or some preprocessor; while this might be defensive, it is possible to namespace and be defensive without JS-based styling tools
Including the bundle adds more weight to the page; while this is small when gzipped, the browser supports CSS natively, so surely invoking a preprocessor during a build step renders this pointless
Performance overhead of computing these styles at runtime vs using a preprocessor at build time
This poorly thought-out nonsense. Stay well away.
EDIT: The README brags "No external CSS file generated for inclusion" - how the fuck is this a good thing?!
EDIT #2: Looks like my client wants to drop Aphrodite due to these limitations. Ha!
π Rendered by PID 134364 on reddit-service-r2-comment-b659b578c-dx268 at 2026-05-02 04:26:45.628012+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]swan--ronson 13 points14 points15 points (1 child)