-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
steal 3.2.1: exception with steal.loaded property set in IE8/IE9 #49
Comments
thanks. I will take a look at it. |
Could this be related to #33 ? Read the comment at the bottom. |
Why do you think so? Looks different to me. Here I'm trying to tell steal that a file has been already loaded outside. |
Oh, tried to put a comment but closed the ticket.=) Reopening.. |
I'm getting SCRIPT5007: Unable to get value of the property 'src': object is null or undefined in IE9 after pulling from git. Going home now.. Only work thu/fri so I won't be able to look deeper into it. Thought I would post this.. If you can't reproduce it you can ignore this comment of course and I'll have to dig deeper next week. Anyway, have a nice weekend guys.. |
I'm using jmvc 3.2.1 and attempting to reduce page flickering during its initialization. So I've added
production.css
to the head element and providedloaded
property in steal global var:<link rel="stylesheet" type="text/css" href="production.css"/>
<script type="text/javascript">
var steal = {
app: "myapp",
env: "production",
loaded: ["myapp/production.css"]
};
</script>
<script type='text/javascript' src='../steal/steal.js'></script>
I'm getting an exception in IE browsers and production.css is loaded by steal for the second time.
Other browsers work fine and
production.css
is requested only once in the head.After some research I've found why IE is failing..
There is a section of a special IE treatment in steal.js
it starts with
if (support.interactive) {
where the function belowfunction(name){ var src = steals[name].options.src, interactive = getCachedInteractiveScript(), interactiveSrc = interactive.src; interactives[src] = interactives[interactiveSrc]; interactives[interactiveSrc] = null; }
is being attached on steal.loaded function.
This particular function fails on
var src = steals[name].options.src
line becausesteals["myapp/production.css"]
is undefined here.Other browsers have no issue here because an original steal.loaded is called directly.
The text was updated successfully, but these errors were encountered: