Unless you need a component to perform a function explicitly after a certain amount of time, you should avoid using setTimeout
since it may affect performance. Instead, consider using the function beforeAppear
and pubsub library topic PAGE_READY
.
Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices