Hacker News new | ask | show | jobs
by jhherren 4385 days ago
Putting performance optimization hints in my presentation code feels wrong. I think I'd use a separate css file for will-change.
1 comments

By what I'm reading you shouldn't have the property in a style sheet at all. The author implies that every usage of the property requires resources that are never released as long as the property is still active. The property in a style sheet will mean that the resources are never released.

Thus, the suggestion to use the property through javascript so that it can be applied and then removed. That just seems totally weird to me.