Select Page

Category: Link

Managing CSS & JS in an HTTP/2 World

Trevor Davis on how we’ll link up CSS when we go all-in on HTTP/2: This is the opposite of what we have done as best practice for years now. But in order to take advantage of multiplexing, it’s best to break up your CSS into smaller files so that only the necessary CSS is loaded on each page. An example page markup would look something like this: ... ... This idea shares some DNA with Critical CSS. Loading CSS with is blocking, so load as little of it as you can right away and load the rest of it as you need it. There is no penalty for loading the stylesheets individually because of HTTP/2 multiplexing, and loading them right before the HTML that uses them actually takes advantage of the blocking by not allowing the rendering of the HTML before the CSS for it is gotten. Plus you’ll be able to break cache on these smaller bits of CSS as needed, just bear in mind it might not compress as well. The thing is… for any browser that doesn’t support HTTP/2 (e.g. IE 10, Opera mobile/mini, UC browser), while this technique will still work, it will be pretty bad for performance. This will be an easier call to make on projects that don’t need to support those browsers for whatever reason. Direct Link to Article — Permalink Managing...

Read More

Cross Browser Testing with CrossBrowserTesting

(This is a sponsored post.) Say you do your development work on a Mac, but you’d like to test out some designs in Microsoft Edge, which doesn’t have macOS version. Or vice versa! You work on a PC and you need to test on Safari, which no longer makes a Windows version. It’s a classic problem, and one I’ve been dealing with for a decade. I remember buying a copy of Windows Vista, buying software to manage virtual machines, and spending days just getting a testing environment set up. You can still go down that road, if you, ya...

Read More

Quantum CSS

“Quantum CSS” is the new name for “Stylo”, which is the new CSS rendering engine, a part of “Project Quantum” which is the project name to rewrite all of Firefox’s internals, which will be called “Servo”. I think there was a company memo to use the “replace a jet engine while the jet is flying” metaphor, but it’s apt. It’s fascinating, but ultimately the win is for users of Firefox. Lin Clark: It takes advantage of modern hardware, parallelizing the work across all of the cores in your machine. This means it can run up to 2 or 4 or even 18 times faster. With any luck, CSS developers won’t notice anything but the speed either. Direct Link to Article — Permalink Quantum CSS is a post from CSS-Tricks...

Read More

Pattern Library Workflow

Jon Gunnison documents some things that have made pattern libraries successful at Allstate. Tidbits I found interesting: There are specific jobs (part of what he calls “governance”) for maintaining the library. I love that they are called librarians. A “designer librarian” and a “UI dev librarian”. Acknowledgment that there are “snowflakes”, or single instances that don’t fit into a pattern (at least right now). The pattern library is fed by information that comes in from lots of different places. Hence, requiring librarians to triage. Direct Link to Article — Permalink Pattern Library Workflow is a post from CSS-Tricks...

Read More

Crafting Webfont Fallbacks

There is a great bit in here where Glen uses Font Style Matcher to create some CSS for a fallback font that has font-size, line-height, font-weight, letter-spacing, and word-spacing adjusted so perfectly that when the web font does load, the page hardly shifts at all. Like barely noticeable FOUT. Maybe we’ll call it FOCST (Flash of Carefully Styled Text). Direct Link to Article — Permalink Crafting Webfont Fallbacks is a post from CSS-Tricks...

Read More
www.000webhost.com