Skip to content

Adding Noam's long-animation-frames snippet#28

Merged
nucliweb merged 4 commits into
nucliweb:websitefrom
borisschapira:patch-3
Jun 16, 2023
Merged

Adding Noam's long-animation-frames snippet#28
nucliweb merged 4 commits into
nucliweb:websitefrom
borisschapira:patch-3

Conversation

@borisschapira

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Jun 5, 2023

Copy link
Copy Markdown

Someone is attempting to deploy a commit to a Personal Account owned by @nucliweb on Vercel.

@nucliweb first needs to authorize it.

Comment thread pages/Interaction/long-animation-frames
@tunetheweb

Copy link
Copy Markdown
Contributor

As LoAF isn't available by default and requires turning on Experimental Web Features (or an Origin Trial from Chrome 115) we should probably note this.

@tunetheweb

Copy link
Copy Markdown
Contributor

Doh! Just saw you added it!

Maybe worth adding a link to the Origin Trial too: https://developer.chrome.com/origintrials/#/view_trial/3935020174414970881

@borisschapira

borisschapira commented Jun 15, 2023

Copy link
Copy Markdown
Contributor Author

Thanks, I added a notice before the snippet. @tunetheweb Do you know what impact the Origin Trial is going to have? We won't be able to use this unless the origin is part of the trial, that's it?

@tunetheweb

tunetheweb commented Jun 15, 2023

Copy link
Copy Markdown
Contributor

You won't be able to use it unless you either enable the experimental web platform features (which can also enable lots of other features too), or you enable the origin trial (which will just for LoAF). You don't need to do both.

Any origin can sign up for a trial (it's free and the reply is automated!) and add a <meta> tag with that origin's unique trial token (or HTTP Header) and that will cause Chrome to automatically enable this feature for all users of the site (or only return these for a proportion of your users if you prefer). Probably less useful for a snippet to be honest, but useful if you want to start logging these in the field and feed them back to analytics. Though for a small, personal site where you use the snippet a lot maybe the origin trial method is a good way to enable just this and not to have to switch this flag on for all sites (or toggle this continually).

More info here: https://developer.chrome.com/en/docs/web-platform/origin-trials/

@tunetheweb

Copy link
Copy Markdown
Contributor

FYI edited my previous comment to explain it better.

@borisschapira

Copy link
Copy Markdown
Contributor Author

Added a comment to reflect both situation :)

@nucliweb nucliweb merged commit 5cd0003 into nucliweb:website Jun 16, 2023
nucliweb added a commit that referenced this pull request Feb 25, 2026
Adding Noam's long-animation-frames snippet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants