Does async requests impacts UI thread performance

129 Views Asked by At

From attached timeline recorded from an Electron App, is it possible that the async requests block/impact UI thread? Is there any solution for this?

enter image description here

Question updated.

1

There are 1 best solutions below

0
On

Use defer instead of async. If async scripts get downloaded first, they can still block rendering since they will get executed before non-async scripts. You can read a much more in depth examination about this here: http://calendar.perfplanet.com/2016/prefer-defer-over-async/