How to calculate HTML element width before render - SS Blog

How to calculate HTML element width before render - SS Blog