Created by: timmywil
I was profiling one of my applications and noticed that the slowest path came from modal.js
and accessing .offsetWidth
to force a reflow to set up for a CSS transition. This isn't necessary and should work without causing reflows. Using setTimeout
instead will improve performance.