
Making GitHub’s new homepage fast and performant — Tobias Ahlin describes how the scrolling effects are done more performantly thanks to IntersectionObserver and the fact that it avoids the use of methods that trigger reflows, like getBoundingClientRect. Also, … The post Links on Performance appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter. https://css-tricks.com/links-on-performance/

I like a good trick. What if… a URL was… a promise… that fetched said URL? www.codepen.io.then((response) ={ console.log(response); }); That’s what @justjavac did with JavaScript Proxys. A clever trick, that. Don’t @ me about the practicality. Trick…
The post proxy-www appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

By our last estimate, there are now more PDFs in the world than atoms in the universe (not verified by outside sources) so chances are, from time to time, you’re going to run into a PDF document or two. Browsers …
The post Wrangling Control Over PDFs with the Adobe PDF Embed API appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/wrangling-control-over-pdfs-with-the-adobe-pdf-embed-api/

Stefan Judis, two days before I mouthed off about using (X, X, X, X) for talking about specificity, has a great blog post not only using that format, but advocating that browser DevTools should show us that value by …
The post Should DevTools teach the CSS cascade? appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://www.stefanjudis.com/blog/should-devtools-teach-the-css-cascade/

Collection of common CSS mistakes, and how to fix them From Stefánia Péter. Clever idea for a site! Some of them are little mind-twisters that could bite you, and some of them are honing in on best practices that … The post CSS Hell appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter. https://csshell.dev/

This post is an accelerated introduction to Svelte from the point of view of someone with solid experience with React. I’ll provide a quick introduction, and then shift focus to things like state management and DOM interoperability, among other things. …
The post Svelte for the Experienced React Dev appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/svelte-for-the-experienced-react-dev/

SVGs are awesome: they are small, look sharp on any scale, and can be customized without creating a separate file. However, there is something I feel is missing in web standards today: a way to include them as an external …
The post svg-loader: A Different Way to Work With External SVG appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/svg-loader-a-different-way-to-work-with-external-svg/

The Public Beta of the Notion API dropped! Woot! Here’s their guide. I’ve been a Notion user and fan for a long time, for both personal and professional team use. They even sponsored a few videos around here a …
The post Notion API appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
Here’s some hardcore deep-dive CSS nerdery from PPK. If you can wrap your mind around min-content (the smallest an element can be based on the content it contains) and max-content (the largest the content of an element can push it) …
The post fit-content and fit-content() appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://www.quirksmode.org/blog/archives/2021/04/fitcontent_and.html

If you follow new developments in CSS, you’ve likely heard of the impending arrival of container queries. We’re going to look at the basics here, but if you’d like another look, check out Una’s “Next Gen CSS: @container” article. …
The post Can We Create a “Resize Hack” With Container Queries? appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
https://css-tricks.com/can-we-create-a-resize-hack-with-container-queries/