You may be able to improve performance by limiting the amount of processing that has to be done by the browser by avoiding additional coding when using onLoad
and beforeAppear
, since the more code that is executed at this point, slower and longer the page load time may appear. Also, do not make synchronous endpoint calls in beforeAppear
or onLoad
since rendering will be blocked until they return. For more information, see Developing Widgets.