Bug noticed: dialog open freeze when loading url which contain Google analytics

Bug noticed: dialog open freeze when loading url which contain Google analytics


Hi,
I've just spent 1hour to solve what might be a "bug", at least here is
what I found out:
(Note: the parent page itself already has a google analytics script
included)
- OS: Vista Home
- Browsers on which bug was noticed:
Firefox (3.5.2 & 3.0.13) + Chrome (2.0.172)
- Script:
$("#myDiv").load(url, function() {
        $(this).dialog({
            modal:true,
            bgiframe: true,
            resizeable: true,
            buttons: {
                "Close": function() { $(this).dialog("close"); }
            }
        });
    });
- Error:
The dialog does not open itself, the _parent page itself is completly
trying to reload but freeze (with blank content!).
Status bar is notifying 'loading analytics'....
I should have paid attention more seriously this sentence, but i
thought the page is reloading once again including all its
depedencies...
Finaly it turned out to be that the calling 'url' loaded includes the
analytics basic "<script>" and this made all freezing !
Whereas the page and its dialog were working perfectly on Internet
Explorer, Firefox was showing white page, Firbug was reporting "$
(this) not defined" (=> this made me search the problem at the wrong
place), and Google Chrome was even freezed and had to hardkill
program process!
Note: the script which contains the dialog myDiv, contains itself the
GG analytics script, so maybe loading twice this analytics script
within the same page made the bug.
Conclusion: if a main page include Google analytics script, be aware
that NO ONE child div(dialog div in my case) calls again analytics
script.
The content page "url" MUST NOT CONTAIN ANALYTICS SCRIPT when using
any ajax.load(url).
I hope this might be usefull to someone.