Hi Nimesh,
The screenshots seem to have broken. But based on your error I'm expecting that the problem lies in the fact that jquery could not be loaded. Is your login widget relying on jquery? If so make sure the file is in the widget package and also deployed to the location where the script is looking for it. This would be in the deployment/web/scripts folder. The same applies to your visiwebrtc.js file. This one needs to be deployed to /webclient/visiwebrtc.js for it to be loaded from your login page.
Could you post a the code of your login page, for further help. And mention if it is indeed a login page with widgets or a page based on a login.html, that has been adjusted.
The reason the page is currently slow is because it will take up to 30 seconds to determine if the JS is going to be loaded. And if the JS is loaded synchronously it will halt the rendering of the page.
Hi Mitchel, Thank you for your response.
I have a few questions, We run this application on the Mendix Clould. So where do I locate the directories which you have mentioned? deployment/web/scripts and /webclient/visiwebrtc.js please? Is it under Request Handlers?
We no longer use webrtc, but a different tool instead; so I am looking to remove all areas that refers to webrtc.
Thanks Nimesh
Nimesh,
All javascript files and styles that you want to load should be contained in the theme folder. So in your case the scripts should be in the folder /scripts/ in the theme folder. All files that are added to the theme folder will automatically be placed in the deployment web folder of your application. So if you wanted to reference them in the index file you can just use something like:
./scripts/yourscript.js
You can load css and styles from external sources by referencing them in the index page or the login page, but they must be accessible to the server. Is https://merckprod.iocom.com/scripts/jquery-2.1.1.min.js a public server hosting the jquery files? If so have you just tried loading it in a browser?
It is probably slow loading because its trying to load the different resources but its unable to find them. Hence why you have a connection time out.
Regards