cssnano
caniuse
cssnano | caniuse | |
---|---|---|
16 | 389 | |
4,629 | 5,503 | |
0.4% | - | |
9.0 | 9.5 | |
7 days ago | 4 days ago | |
CSS | JavaScript | |
MIT License | Creative Commons Attribution 4.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cssnano
-
Why don’t we talk about minifying CSS anymore?
There are a number of tools available to minify CSS in development or as part of your build pipeline including, but not limited to, cssnano and Vite. If you’re using sass, it’s as straightforward as adding --style=compressed to your sass command. The results you achieve may vary depending on the complexity of your CSS, but you may see numbers similar to this (processed with sass):
-
Beyond the Basics: Exploring TailwindCSS and Linaria in Next.js - From Installation to Performance Optimization
Since Tailwind is a PostCSS plugin, we can also add cssnano plugin to compress the bundle.
-
Maximize Web Performance with CSS Optimization Techniques
Minifying your CSS involves removing unnecessary whitespace, comments, and reducing property names. This results in smaller file sizes and faster downloads. Use tools like UglifyCSS and CSSNano for this purpose.
-
Classic Themes with Block Patterns in WordPress
For the sake of simplicity, my example setup uses a single-file plugin and puts all styles directly into a single style.css file without using further theme.css or theme.json files, which we might want to use depending on the requirements for customizability. Likewise, SASS / SCSS support can be added if it makes life easier for the developer(s) involved. But as we already use PostCSS to control autoprefixing and cssnano minification, we can also use it to support the latest and even upcoming CSS sytax like native CSS nesting.
-
How to auto-prefix and minify CSS?
The cssnano plugin can minify/compress CSS and make it suitable for production use. Install cssnano plugin using this command:
-
Thanks to Sveltekit, this site - with a lot of images - scores high on Lighthouse.
CSS minification by cssnano
-
Styling Remix using Tailwind and PostCSS
cssnano
-
How to integrate postcss and webpack
cssnano is used to ensure that the final result is as small as possible for a production environment.
- Buenas practicas en CSS
-
Source Maps
There are plenty of free plugins are available to optimize styles, scripts and create source maps for them. Optimize styles Optimize Scripts Create Sourcemaps
caniuse
-
CSS Text Box Trim
Safari is the only browser that doesn't support extending HTML element
https://caniuse.com/?search=Custom%20Elements
-
JavaScript is not single-threaded
You forgot to mention (Web)Workers. This is explicit creation, management, and communication with additional threads within JavaScript. What's more, they've been around in JavaScript longer than the V8 engine has even existed!
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers...
https://caniuse.com/?search=webworkers
- Show HN: Render audio to HTML canvas using WebGPU
-
Tree-shaking, the horticulturally misguided algorithm
Do you happen to know where can I check out the cutoff version for each browser? https://caniuse.com/?search=wasm doesn't have it (or other things like WasmGC for that matter)
- Le saviez-vous ? :focus :focus-within :focus-visible
-
10 Websites Every Web Developer Should Bookmark
(https://caniuse.com/) A handy tool for checking the browser compatibility of HTML, CSS, and JavaScript features. Can I Use provides up-to-date support tables for various web technologies across different browsers.
-
SASS is dead? CSS vs SASS 2024
Caniuse
-
Free Resources Every Web Developer Should Know About
Can I Use (https://caniuse.com/)
-
Speedometer 3.0: A Shared Browser Benchmark for Web Application Responsiveness
> Is it though?
In my experience it's the buggiest browser out of the big three, and is often missing basic features like e.g.:
https://caniuse.com/?search=opus
Supported in Firefox for *12 years* now, in Chrome for 10, still no support in Safari.
They only "support" Opus audio in their special snowflake '.caf' container, which is super buggy and the last time I checked no open source program could even generate Opus '.caf' files that could be played by Safari on all Apple platforms. I ended up writing a custom converter which takes a standard '.opus' file and remuxes it on-the-fly (I only store '.opus' files on my server) into Safari-compatible '.caf' files, taking special care to massage it so that it avoids all of their demuxer/decoder bugs. You shouldn't have to do this to have cross-browser high quality audio!
-
Streaming HTML out of order without JavaScript
Well I'll be! In my mind I had this clear picture of Firefox implementing it.
It correct, it was only Chrome: https://caniuse.com/?search=html%20import
What are some alternatives?
purgecss - Remove unused CSS
browserslist - 🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
Tailwind CSS - A utility-first CSS framework for rapid UI development.
caniemail - Can I email… Support tables for HTML and CSS in emails.
PostCSS - Transforming styles with JS plugins
postcss-preset-env - Convert modern CSS into something browsers understand
twind - The smallest, fastest, most feature complete Tailwind-in-JS solution in existence.
modern-css-reset - A bare-bones CSS reset for modern web development.
Sass - Sass makes CSS fun!
modern-normalize - 🐒 Normalize browsers' default style
css-loader - CSS Loader
Servo - Servo, the embeddable, independent, memory-safe, modular, parallel web rendering engine