Technology News

My white whale: A use case for will-change

 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 →

Does AI Have The Answer To The Customer Experience Riddle?
A DIY Guide to Get Your Business License in India

Related Articles

7 Best Web Design Ideas For Beginners

7-best-web-design-ideas-for-beginners
A web designer’s task is to create compelling and accessible websites using their artistic intuition. And, thanks to the brilliance of today’s technology, we have all of the resources we need…

Consistent, Fluidly Scaling Type and Spacing

consistent-fluidly-scaling-type-and-spacing
When Chris first sent me this prompt, I was thinking about writing about progressive enhancement, but that subject is so wide-reaching to be one thing and all too predictable, especially…

How to Maximize Sales In Retail?

How to Maximize Sales In Retail?
How to Maximize Sales in Retail? The primary goal of any business is to get more customers. If you own a retail business, sales are likely to go through a…

7 Smart Ways to use Chatbots for e-Commerce Business

7-smart-ways-to-use-chatbots-for-e-commerce-business
Chatbots are revolutionizing the e-commerce sector and enabling merchants to offer better purchasing experiences. AI chatbots are growing enormously in the corporate sector. In a report published by Grand View…