# Templates Not Loading Fully

**URL:** <https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 15, 2022, 3:14pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674 "2022-12-15T15:14:50Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![alec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alec/32/41994_2.png) [@alec](https://forum.inductiveautomation.com/u/alec)\
**Post date:** [December 15, 2022, 3:14pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/1 "2022-12-15T15:14:50Z")

</div>

Has anyone had an issue where templates do not fully load in perspective? The first request to a page seems to always leave 1-2 templates showing null data then on the second request the page loads fully. Has anyone else had this issue and if so was there a fix?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/c/cc661ce3117d2288c49f68d41d6a79c16ae94069.png)

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [December 15, 2022, 3:18pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/2 "2022-12-15T15:18:54Z")

</div>

What version are you on?

I assume by "template", you mean embedded view. How many embedded views are on there on a single view, and are there multiple levels of nesting? If so, how many?

Is there any thing in common with the views that show this issue? Similar device, level of nesting, etc...

---

<div class="post-metadata">

**Author:** ![alec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alec/32/41994_2.png) [@alec](https://forum.inductiveautomation.com/u/alec)\
**Post date:** [December 15, 2022, 3:26pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/3 "2022-12-15T15:26:16Z")

</div>

We are on the latest Ignition release.

Yes by template I meant embedded view. There are 2-3 levels of nesting in most embedded views and 10-20 embedded views on any given page.

Most of the components in our pages are embedded views with the exception of buttons / labels to control (start/stop/safety reset) our equipment / devices.

Thanks for the quick response.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 15, 2022, 4:24pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/4 "2022-12-15T16:24:44Z")

</div>

This is the kind of thing our support department would like to hear about.

---

<div class="post-metadata">

**Author:** ![Belkis\_Rosana\_Contre](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Belkis\_Rosana\_Contre](https://forum.inductiveautomation.com/u/Belkis_Rosana_Contre)\
**Post date:** [June 5, 2024, 11:26am UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/5 "2024-06-05T11:26:09Z")

</div>

The same is happening with 1 of our customers, but this is not happening in all the perspective clients, but in some. Normally the template load time is about 1-2 sec and then automatically loads the correct values.

In the case for clients that this automatic upload is not correctly working, the user must press F5, and then the templates load correctly. Any remarks on why this could happen?

Ignition Version is 8.1.24

---

<div class="post-metadata">

**Author:** ![alec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alec/32/41994_2.png) [@alec](https://forum.inductiveautomation.com/u/alec)\
**Post date:** [June 5, 2024, 2:48pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/6 "2024-06-05T14:48:33Z")

</div>

After speaking with support the issue seemed to be too many layers of embedded views. They recommended 1-2 layers of embedded views and this seemed to fix the issue.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 5, 2024, 10:16pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/7 "2024-06-05T22:16:59Z")

</div>

Lots of nested Views can also _significantly_ increase initial loading times. As support said, I try to limit mine to 1-2 nests

Ignore the dodgy graphics, purely for testing only, but this is a comparison I did of loading times of embedded views without any nested views compared with one with at most 3 or 4 levels. The proof is in the pudding and it's insane the difference. PS this was done in August 2022 and improvements have been made since then to page load times.

---

<div class="post-metadata">

**Author:** ![Ethan\_Robertson](https://avatars.discourse-cdn.com/v4/letter/e/f0a364/32.png) [@Ethan\_Robertson](https://forum.inductiveautomation.com/u/Ethan_Robertson)\
**Post date:** [November 7, 2024, 8:40pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/8 "2024-11-07T20:40:17Z")

</div>

I am having the same issue right now and am wondering what you did to make them load more accurately? I was able to get them to load faster by converting my template views to Flex Containers but am still having issues with them loading incorrect values.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 7, 2024, 11:05pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/9 "2024-11-07T23:05:25Z")

</div>

Not loading the bindings correctly usually only occurs when you have a number of levels of nesting of embedded views. Is this the case for you?

---

<div class="post-metadata">

**Author:** ![alec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alec/32/41994_2.png) [@alec](https://forum.inductiveautomation.com/u/alec)\
**Post date:** [November 8, 2024, 2:48pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/10 "2024-11-08T14:48:35Z")

</div>

We decreased our level of nested views and that fixed the issue.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Furlani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benjamin_furlani/32/66084_2.png) [@Benjamin\_Furlani](https://forum.inductiveautomation.com/u/Benjamin_Furlani)\
**Post date:** [November 8, 2024, 3:05pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/11 "2024-11-08T15:05:52Z")

</div>

This sounds like you may have some issues with persistence. If you load values into parameters in the designer and they are set to persist they will load that data initially and then once the parameters are changed they will then load the correct data afterwards. I typically try to keep my parameters clean and have some labels and things to say "No Params selected" or whatever the right thing to say might be.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 10, 2024, 9:12pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/12 "2024-11-10T21:12:48Z")

</div>

> [@Benjamin\_Furlani](#):
>
> they will then load the correct data afterwards

That's what _should_ happen, but for deeply nested views, more often that not, some will not ever set up the binding correctly in the client and will therefore not receive any further updates. It only happens with deeply nested (ie usually 3+) views. Regardless of persistence setting. If persistence is off, you will see a null for these values. The only way to resolve this at this stage is to remove the extra nesting levels

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [November 10, 2024, 10:06pm UTC](https://forum.inductiveautomation.com/t/templates-not-loading-fully/67674/13 "2024-11-10T22:06:43Z")

</div>

> [@nminchin](#):
>
> some will not ever set up the binding correctly in the client and will therefore not receive any further updates.

The way properties are passed into embedded views is interesting, it happens entirely on the client. Most importantly, bindings do not traverse the boundaries of a view.

Passing parameters to an embedded view requires a back and forth between the gateway and the client:

1. Gateway sends property values.
2. Client gives property values to the embedded view store (client side).
3. Embedded view store notices its properties have changed, and notifies the gateway.
4. Gateway sends updated embedded view property values.
5. [Repeat 2 -\> 5 for each nested embedded view]

Views have tons of features, and all those features add up to a slow-ish startup while syncing with the client. Which is totally fine for complicated UI's where you're doing bindings, scripts, actions, etc, but incredibly overkill for "template-like" things (embedded views for displaying custom icons, P&ID shapes, etc).

It'd be interesting to see what could be done with a resource that is _lighter-weight_ than a view, something closer to a component. No access to anything beyond the props passed in, and some version of bindings/expressions that run directly in the client.
