Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Possible Race Condition between IE and Firefox.

$
0
0
I'm having some trouble between firefox and IE.

  1. <!DOCTYPE HTML>
    <html lang="en">
    <head>
        <title>rae/dataException/dataExceptionComponent DEMO</title>
    </head>

    <body>
    <h1>rae/dataException/dataExceptionComponent DEMO</h1>

    <div id="exceptionTypeComponent"></div>

    <script type='text/javascript'
            src='../../../steal/steal.js'>
    </script>

    <script type='text/javascript'>
            steal("jquery")
                .then(
                'rae/dataException/models/fixtures',
                'rae/dataException/dataExceptionTypeComponent/dataExceptionTypeComponent.css'
                )
                .then('rae/dataException/dataExceptionTypeComponent',
                function (exceptionTypeComponent) {
                    new exceptionTypeComponent('#exceptionTypeComponent');
                });

    </script>
    </body>
    </html>

This is my demo page for a component I'm developing. This works perfectly fine in Firefox and displays the code in the template. But if I look at this page in IE nothing will show up but the static <h1> element. However what's interesting, is that if I run the IE dev tools and refresh the page, everything works fine again. The only thing I can think of is that by opening the dev tools in IE, I'm slowing something down long enough for the template to be rendered properly..


Any help would be appreciated.


Viewing all articles
Browse latest Browse all 3491

Trending Articles