# DesktopHTMLViewer in DesktopWindow long delay

**URL:** <https://forum.xojo.com/t/desktophtmlviewer-in-desktopwindow-long-delay/83728>\
**Category:** Windows\
**Created:** [December 28, 2024, 8:51pm UTC](https://forum.xojo.com/t/desktophtmlviewer-in-desktopwindow-long-delay/83728 "2024-12-28T20:51:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [December 28, 2024, 8:51pm UTC](https://forum.xojo.com/t/desktophtmlviewer-in-desktopwindow-long-delay/83728/1 "2024-12-28T20:51:29Z")

</div>

i have 2 DesktopHTMLViewer in a Window  
if i use .Show there is a 5 Seconds Delay until the Window get visible!?  
there was no url given

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [December 29, 2024, 1:36am UTC](https://forum.xojo.com/t/desktophtmlviewer-in-desktopwindow-long-delay/83728/2 "2024-12-29T01:36:44Z")

</div>

Sounds like it’s waiting for a timeout. Have you tried setting the url to “about:blank” ?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [December 29, 2024, 8:57am UTC](https://forum.xojo.com/t/desktophtmlviewer-in-desktopwindow-long-delay/83728/3 "2024-12-29T08:57:54Z")

</div>

i tried your advice but it does not help.

it seems it is the first initialisation of both htmlviewer itself.

if i press a button to show the window the log comes very delayed.

Pressed Event in Main Window  
`System.DebugLog CurrentMethodName` ← this output comes 5 seconds later after i clicked the button  
`WindowWetter.Show`

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [December 29, 2024, 9:26am UTC](https://forum.xojo.com/t/desktophtmlviewer-in-desktopwindow-long-delay/83728/4 "2024-12-29T09:26:58Z")

</div>

I’m assuming you are using WebKit?

Could you make an instance of the window earlier and just not show it, just to get it to initialize the browser components?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [December 29, 2024, 11:17am UTC](https://forum.xojo.com/t/desktophtmlviewer-in-desktopwindow-long-delay/83728/5 "2024-12-29T11:17:59Z")

</div>

> Could you make an instance of the window earlier and just not show it, just to get it to initialize the browser components?

that does not make any change in initialisation speed ☹

> I’m assuming you are using WebKit?

i am using 2024r4.1 seems there is no propertie to change it.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [December 29, 2024, 12:14pm UTC](https://forum.xojo.com/t/desktophtmlviewer-in-desktopwindow-long-delay/83728/6 "2024-12-29T12:14:46Z")

</div>

This test seems working ok here.

[show\_hide\_html\_test.zip](https://forum.xojo.com/uploads/short-url/wB8ZtVzxtTw5CS0lysEgKJjzCPY.zip) (4.6 KB)

But I’m just injecting a fast sample to render.  
Maybe you are loading some more complex file content?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [December 29, 2024, 12:57pm UTC](https://forum.xojo.com/t/desktophtmlviewer-in-desktopwindow-long-delay/83728/7 "2024-12-29T12:57:18Z")

</div>

> [@Rick\_Araujo](#):
>
> This test seems working ok here.

i tested your project and change it how my projects looks and can’t reproduce my issue, thats odd.  
i need spend more time later on this.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [December 29, 2024, 1:00pm UTC](https://forum.xojo.com/t/desktophtmlviewer-in-desktopwindow-long-delay/83728/8 "2024-12-29T13:00:40Z")

</div>

😜
