corenominal

Full stack web developer, interested in all the things, but especially the web, code, design, Linux, OS X, PHP, WordPress, JavaScript & robots.

FORC: The Fear of Removing CSS image/svg+xml

So if you want to defeat FORC and overcome your fear of removing CSS, think about using CSS Modules, or some other technique (eg. many people achieve this with BEM) that allows you to encode explicit dependencies between CSS and the rest of the system.

Good advice, I’ve been using a form of CSS modules for years. My method isn’t fancy, I just load some CSS conditionally, which is normally determined by a controller. When I no longer need that CSS, I delete it. No problem, no fear, and most importantly, no acronyms.

Leave a comment

Your email address will not be published. Required fields are marked *