Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anton-karlovskiy/44d143bb7be5e03bf1db53d54f4874fa to your computer and use it in GitHub Desktop.
Save anton-karlovskiy/44d143bb7be5e03bf1db53d54f4874fa to your computer and use it in GitHub Desktop.

Re: selfies project written in CRA and PWA

@anton-karlovskiy
Copy link
Author

Make local storage usage as small as possible for performance, user experience, and small persisted data (Re: Storage for the web & Storage for the web).

@anton-karlovskiy
Copy link
Author

Never use // eslint-disable-next-line react-hooks/exhaustive-deps.

@anton-karlovskiy
Copy link
Author

@anton-karlovskiy
Copy link
Author

@anton-karlovskiy
Copy link
Author

Should follow best practices in setting up fonts for browser compatibility, performance, and maintainability (Re: Using @font-face, Multiple font-weights, one @font-face query, Typography for Developers).

@anton-karlovskiy
Copy link
Author

anton-karlovskiy commented Apr 6, 2021

@anton-karlovskiy
Copy link
Author

Please don't import SVGs as JSX. It's the most expensive form of sprite sheet: costs a minimum of 3x more than other techniques, and hurts both runtime (rendering) performance and memory usage.
This bundle from a popular site is almost 50% SVG icons (250kb), and most are unused.

https://twitter.com/_developit/status/1382838799420514317

@anton-karlovskiy
Copy link
Author

@anton-karlovskiy
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment