0

Is there any benefit on using the will-change property on an html video tag to increase performance ?

if so, how should i use it in order to make the video run on the GPU using Hardware Acceleration ?

Rob
  • 14,746
  • 28
  • 47
  • 65
Roee Yossef
  • 455
  • 5
  • 16

1 Answers1

1

will-change is used to hint the browser, that a property or the content of the corresponding DOM-Element will likely change in the near future. Therefore it requires as value a CSS-property (e.g. will-change: opacity) or the contentskeyword (will-change: contents).

If None of this is changed, I see no reason for using it on the video-tag.

MattDiMu
  • 4,873
  • 1
  • 19
  • 29