WebView loadSnippet takes long time

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
6 posts • Page 1 of 1
amichon
Posts:93
Joined: Sat May 17, 2014 3:49 pm

WebView loadSnippet takes long time

Post by amichon »

When i load a snippet in the webview EWO it takes a long time (~2 seconds)

It takes 2 seconds after searching "gojs" after 22:13:50.376

Please find below the logfile of the Web server (flag -dbg 2)

Any idea about the cause ?

Code: Select all

WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:49.333,	WORK,	OaFileSys::fileExists found file: "C:\\Siemens\\Automation\\WinCC_OA\\3.18\\data\\html/defaultGeneralObjectPage.html"
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:49.335,	WORK,	OaFileSys::matchPath( C:\Siemens\Automation\WinCC_OA\3.18\data\html/defaultGeneralObjectPage.html, C:\Siemens\Automation\WinCC_OA\3.18\) == PVSS_TRUE
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:50.369,	WORK,	OaFileSys::fileExists found file: "C:\\Siemens\\Automation\\WinCC_OA\\3.18\\data\\html/js/vendor/jquery-3.5.1.min.js"
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:50.372,	WORK,	OaFileSys::matchPath( C:\Siemens\Automation\WinCC_OA\3.18\data\html/js/vendor/jquery-3.5.1.min.js, C:\Siemens\Automation\WinCC_OA\3.18\) == PVSS_TRUE
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:50.372,	WORK,	OaFileSys::fileExists found file: "C:\\Siemens\\Automation\\WinCC_OA\\3.18\\data\\html/js/helpers.js"
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:50.373,	WORK,	OaFileSys::matchPath( C:\Siemens\Automation\WinCC_OA\3.18\data\html/js/helpers.js, C:\Siemens\Automation\WinCC_OA\3.18\) == PVSS_TRUE
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:50.374,	WORK,	OaFileSys::fileExists found file: "C:\\Siemens\\Automation\\WinCC_OA\\3.18\\data\\html/js/oaJsApi.class.js"
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:50.374,	WORK,	OaFileSys::matchPath( C:\Siemens\Automation\WinCC_OA\3.18\data\html/js/oaJsApi.class.js, C:\Siemens\Automation\WinCC_OA\3.18\) == PVSS_TRUE
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:50.375,	WORK,	OaFileSys::fileExists found file: "C:\\Siemens\\Automation\\WinCC_OA\\3.18\\data\\html/js/go.js"
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:50.376,	WORK,	OaFileSys::matchPath( C:\Siemens\Automation\WinCC_OA\3.18\data\html/js/go.js, C:\Siemens\Automation\WinCC_OA\3.18\) == PVSS_TRUE
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:52.306,	WORK,	OaFileSys::fileExists found file: "C:\\Siemens\\Automation\\WinCC_OA\\3.18\\pictures\\StandardIcons/Proj_admin_20.png"
WCCOActrl2:WCCOActrl    (2), 2022.03.20 22:13:52.307,	WORK,	OaFileSys::matchPath( C:\Siemens\Automation\WinCC_OA\3.18\pictures\StandardIcons/Proj_admin_20.png, C:\Siemens\Automation\WinCC_OA\3.18\) == PVSS_TRUE

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: WebView loadSnippet takes long time

Post by kilianvp »

It depends on what you are doing in go.js. For example, if you have long running functions and are waiting (await) for them, you can simply block the main thread for a few seconds.

amichon
Posts:93
Joined: Sat May 17, 2014 3:49 pm

Re: WebView loadSnippet takes long time

Post by amichon »

yes but gojs is automatically loaded by the function loadSnippet(). It is loaded from installation path, not from my project.

I will open a support request

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: WebView loadSnippet takes long time

Post by kilianvp »

Oh its sorry its from ETM. Yes creating a support request is a good idea.

amichon
Posts:93
Joined: Sat May 17, 2014 3:49 pm

Re: WebView loadSnippet takes long time

Post by amichon »

after restarting the project or computer I no longer have latency

so there is no problem

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: WebView loadSnippet takes long time

Post by kilianvp »

maybe it was a websocket issue? the javascript code connects to websocket

6 posts • Page 1 of 1