Eric Portis

Results 75 comments of Eric Portis

FYI Chrome might ship ResizeObserver in July: https://twitter.com/atotic/status/875754054780985344 Also, the Firefox implementation is most-of-the-way-there-but-stalled: https://bugzilla.mozilla.org/show_bug.cgi?id=1272409 Looks like there’s nothing but the lack of developer-bandwidth holding it back. (I’m super curious...

Relevant thread with the Shopify team who implemented, then abandoned, JS-based container queries on their admin backend: https://twitter.com/_lemonmade/status/870461985334362112 Here's what I think they implemented: https://github.com/lemonmade/container-queries I can't tell by looking...

Regarding requestAnimationFrame — does it matter that it happens just before layout (rather than between layout and paint, ala ResizeObserver)? ![Rendering Pipeline](https://cdn.rawgit.com/WICG/ResizeObserver/803f3afd73eb4cf0445780fc6d64e3e07c362821/newpipeline.png)

I thought you were looking to use requestAnimationFrame because ResizeObserver isn't really supported anywhere yet. If you're only hoping to use it so that your callback fires before first paint...

So, when executed in the ``, cq-prollyfill `getComputedStyle`s (and therefore computes layout) once (or, if a cq matches, possibly more than once) for every `:container()`’d node? Questions that come to...

Ran one little test, and yeah! In the head = FoUC free! (http://ericportis.com/etc/fouc-finder/ vs http://ericportis.com/etc/fouc-finder/defer.html) But—why does the FoUC-free version take 1.5x the time to paint a fully-queried-and-styled page (3.73s...

@annevk [said](https://github.com/annevk/orb/issues/3#issuecomment-972952968): > In order of preference: > - CORS *[...snip]* > - Do something with `Cross-Origin-Resource-Policy: cross-origin` as suggested in https://github.com/annevk/orb/issues/30#issuecomment-971373842. I quite like this. Let me explain Cloudinary's...

There are definitely diminishing returns, and accelerating costs, with DPRs > 2... are you seeing bad effects on real pages? Small 3x viewports downloading resources meant for 5K displays or...

So I asked about this and the response was: > The breakpoints should work with the explicit API that can be used to prefetch the URL while still using fetch...

Hopefully I’ll find some time over the next few months to work on this. In the meantime... The cleanest API for this would be a single new optional side-wide parameter,...