Error It is not working properly https://code.sololearn.com/WF29x8qgViLR/?ref=app
SetInterval is the problem why window's failed to getComputed style. The interval value 10 is relatively small that the function was called just before the character's box loaded. That explains also why it's lagging.
Nasif Rahman the problem is that the code is showing is a and it is lagging
Don't use setInterval() with 10ms, use requestAnimationFrame instead
Gordon getcomputed style is problem
The problem is that it is not running