TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Break Free From CSS Prefix Hell

37 pointsby joeyj01over 13 years ago

3 comments

bretthopperover 13 years ago
What I like: it detects your browser and only sets the needed prefixes.<p>What I don't like: it depends on JS.<p>Using LESS or SASS avoids most of the problem this article talks about it, although the generated CSS will contain every vendor prefix. I'm not sure the difference in CSS filesize is worth using this solution.<p>Does anyone know of a server-side solution like this? Wouldn't be hard to vary the CSS output based on user-agent. Although you'd lose some caching benefits.
评论 #3103089 未加载
评论 #3103803 未加载
评论 #3103830 未加载
评论 #3103135 未加载
mathiasover 13 years ago
When did we stop caring about FOUC and client-side performance?
评论 #3103336 未加载
评论 #3103322 未加载
评论 #3103304 未加载
simonhampover 13 years ago
Fundamentally the wrong wy to deal with this. If it had appeared a few years ago (i.e. before LESS and SASS) it might have been viable for about 5 minutes...<p>Use LESS and precompile your CSS... it will change your life.