[MGNLSTK-271] safari: javascript initialization fails sometimes Created: 27/Jan/09 Updated: 23/Jan/13 Resolved: 27/Jan/09 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Philipp Bärfuss | Assignee: | Philipp Bärfuss |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Issue Links: |
|
||||||||||||
| Sub-Tasks: |
|
||||||||||||
| Template: |
|
||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Date of First Response: | |||||||||||||
| Comments |
| Comment by Philipp Bracher [ 27/Jan/09 ] |
|
It mostly happens if you return to a page which you have visited before. I remember that I had a similar issue in one of the admin central dialogs. There it was caused by the to fast loading/ rendering. Might be that now that we use the aggregated javascript we run into the issue more often, while it never happens in the prototype where we use the scriptloader which causes a dilatation of the initialization. Will try to analyze it (by adding few sleep() calls). |
| Comment by Philipp Bracher [ 27/Jan/09 ] |
|
OK it seams as if the callOnDomReady() method is not called while the script itself is loaded. I have tested that by adding two alerts (one in the method and one in init-behaviour.js). |
| Comment by Philipp Bracher [ 27/Jan/09 ] |
|
While the dom ready event is not fired the onload event is fired properly. I noticed that we don't use the latest jquery version (1.2.6) while the latest is (1.3.1). I will test with 1.3.1. |
| Comment by Philipp Bracher [ 27/Jan/09 ] |
|
Updating to 1.3.1 did the trick. But I have only updated the main jquery file. Should I update all the other scripts too? |
| Comment by Philipp Bracher [ 27/Jan/09 ] |
|
I update jquery main file to 1.3.1 |