TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Descartes.js – Write CSS entirely in JavaScript and bypass the cascade

11 点作者 jonhmchan大约 9 年前

5 条评论

teleclimber大约 9 年前
On your page Descartes causes three forced reflows per scroll event, but no discernible visual effect apart from jank. Thanks, but I'll stick to CSS.
mchahn大约 9 年前
I&#x27;ll walk into an even bigger fire.<p>I encode all my css, html, and code in JS. I put the entire thing for each module in one page, but my modules are small and granular. I truly believe that separation of concerns does not apply. CSS&#x2F;HTML&#x2F;JS are all concerned with each other in a small module. Reading and writing the code becomes much easier and there isn&#x27;t really any performance hit.
arunkumarl大约 9 年前
Cool stuff. I was recently having this idea of putting my CSS in a JS file and inlining it when the page loads. Are you using it in any project? How maintainable is this?
jonhmchan大约 9 年前
I know I&#x27;m walking right into the fire with this one.
SteSteSte大约 9 年前
I don&#x27;t even