# How to preload views

**URL:** <https://forum.inductiveautomation.com/t/how-to-preload-views/43920>\
**Category:** Ignition\
**Tags:** perspective, scripting, ignition80\
**Created:** [February 28, 2021, 11:23pm UTC](https://forum.inductiveautomation.com/t/how-to-preload-views/43920 "2021-02-28T23:23:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![retinder.labana](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@retinder.labana](https://forum.inductiveautomation.com/u/retinder.labana)\
**Post date:** [February 28, 2021, 11:23pm UTC](https://forum.inductiveautomation.com/t/how-to-preload-views/43920/1 "2021-02-28T23:23:13Z")

</div>

I am creating a dynamic carousel and the views being called in the carousels have 6 embedded view in them which makes the page heavy.

I wanted to know if their was a way for me to pre-load these views so it would not take so long to load when viewing those views in the browser

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 1, 2021, 1:22am UTC](https://forum.inductiveautomation.com/t/how-to-preload-views/43920/2 "2021-03-01T01:22:30Z")

</div>

What version of Ignition are you using?  
If `lazyLoad` is set to `true`, then only one View will load when the component starts up.  
If you’re using `autoPlay` to cycle through the views in the carousel, then even with lazyLoad active the component will still load the views when the component starts. One thing you could try is leaving `autoPlay` off, then switching that property to `true` _after_ the page has loaded.

One setup I have for something similar is a Gateway Timer script which broadcasts a “start” message. I have a boolean property on my Carousel and when the carousel hears the message it toggles the custom property to true. When it hears the message a second time, the carousel then toggles autoplay. This prevents instances where the carousel might hear the message immediately.
