Friday, May 27, 2022
  • Home
  • Event
  • Technology
  • Program
  • Education
No Result
View All Result
E-Capitals
No Result
View All Result
Home Program

My white whale: A use case for will-change | CSS-Tricks

admin by admin
February 24, 2022
in Program
0
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter

Related Posts

Beautify GitHub Profile | CSS-Tricks

Cool CSS Hover Effects That Use Background Clipping, Masks, and 3D | CSS-Tricks

Customizing Color Fonts on the Web | CSS-Tricks

A Perfect Table of Contents With HTML + CSS | CSS-Tricks

 Nic Chan:

[…] the will-change property landed in major browsers in August 2015, and I’ve been on the lookout for when to use it ever since. It might seem self-evident to apply it to commonly animated properties such as transform or opacity, but the browser already classifies them as composite properties, thus, they are known as the few properties that you can already expect decent animation performance from. So, heeding the advice of the great developers who came before me, I was cautious and waited for the right opportunity to come along.

I was thinking-out-loud about this as well on ShopTalk not too long ago. I get the spirit behind will-change. It’s like responsive images or DNS prefetching: you give the browser extra information about what you’re about to do, and it can optimize it when it happens. But with will-change… when? Why isn’t there a simple reduced test case demo to showcase something with bad performance, then will-change being applied, and it becomes good performance?

Well Nic found one little directly useful case where a hover-transformed pseudo-element leaves a little dingus of color behind in Safari, and that goes away if you use will-change. I tested it in the latest versions of Safari and found it to be true. Alrighty then, one use case!

I’d love to see a more obvious direct use case. I imagine the sweet spot is on lower-power devices (that still have GPUs) but are new enough to know what will-change is.


Direct Link →

Next Post

Flashlight Fridays Make Reading and Learning Fun

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts

Education

Tell Me What to Say to the Children

by admin
May 26, 2022
0

Dear WeAreTeachers:Every day, I hear my second grade students talking about what they see on the news. Often it’s about...

Read more

Tell Me What to Say to the Children

Skift Meetings – Event Tech Investment Tracker

Venture capital firms advise portfolio companies on navigating the downturn – GeekWire

Books to Read With Kids After a Tragedy

25 Fun Ways to Teach and Learn Them

Beautify GitHub Profile | CSS-Tricks

Load More

Popular Posts

Best Winter Olympics Activities for Kids in the Classroom

by admin
January 19, 2022
0

What is Packet Sniffing Attack? – Types and How to Prevent It?

by admin
December 11, 2021
0

Zain Nadella, 1996-2022: Microsoft CEO’s son remembered for love of music, bright smile, profound impact on his dad

by admin
March 1, 2022
0

Copyright © 2021 - e-Capitals.com DESIGNED AND DEVELOPED BY TEAM WORDPRESS BLOGX

No Result
View All Result
  • Home
    • Home 1
    • Home 2
    • Home 3
  • Event
  • Technology
  • Program
  • Education

Copyright © 2021 - e-capitals.com - DESIGNED AND DEVELOPED BY TEAM WORDPRESS BLOGX