max-width: 100%;
height: auto;
What the other user is talking about is a new feature that FINALLY uses the attributes to preserve the ratio before the image starts loading. const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
Tip: browser consoles already have these shortcuts, except $$ returns an actual array there instead of a NodeList. npm init esm
npm init react-app
https://docs.npmjs.com/cli/init npx speed-test
npx fast-cli
The second one uses fast.com
Do you really need a 100-million yacht and a 20-bedroom villa? No.