Wt web site hangs for several seconds during loading on Firefox + OS X
It takes sometimes tens of seconds until the Wt web site is rendered. When the web site is loaded, all the pages on site can be viewed without any delays. When the web site is loaded using the network profiler of Firefox, no network delays are present. This makes me think that the problems lies in the JS engine of Firefox which changed a lot AFAIK in the recent releases.
The issue is reproducible even all the add-ons are disabled. Also the simplest Wt applications suffer from this issue.
When Firefox is restarted in safe-mode (Burger menu -> ? -> Restart with Add-ons Disabled), the web site loads as expected. According to this page (http://kb.mozillazine.org/Safe_Mode), safe-mode does more than disabling the add-ons. Especially disabled JIT and hardware acceleration are notable items.
I am using Firefox 34 on OS X 10.8.5. This issue was also reproducible on previous (and maybe also on the one before that) Firefox version as well.
I can't reproduce the issue on following configurations:
- Windows 7
- Kubuntu 14.04 running on Virtualbox on Windows 7 as host
- Kubuntu 12.04 running on WMware Fusion on OS X 10.8
Updated by Kayra Akman over 7 years ago
- File profile.json.zip profile.json.zip added
- File profile_data_bottleneck.png profile_data_bottleneck.png added
Wim Dumon wrote:
My first thought goes to the webgl detection that Wt does on application startup. Could you check in wt_config.xml and set webgl-detection to false to see if the problem goes away?
I have attached a performance profiling data from Firefox. It can be loaded via Import... on the Performance pane of Firefox. It shows where most of the time is spent (see the screenshot).
Updated by Koen Deforche over 7 years ago
- Assignee set to Koen Deforche
- Target version set to 3.3.4
That performance chart indicates there is a problem with JQuery. Unfortunately, I cannot reproduce the issue (not on my Mac either), but could you try to see if it makes a difference if you use a more recent version of JQuery using WApplication::requireJQuery()