Skip to content

IE10 + caching #2

@temp3l

Description

@temp3l

Hi!
I am using knockoutjs + viewLoaderPlugin + jquery Mobile and experienced a strange problem today:

In my debug-app I am using your viewLoader plugin alot! ( >15 templates).

In Internet Explorer 10 and only in IE10! (ie8-9 work fine):

Some of my templates won't be fetched!
Sometimes it fetches 10-15 templates sometimes some more.
Clearing and filling the cache affects the problem! if some templates were cached before, it almost always works fine

I think the "max. simultanious downloads of ressources" is somehow limited in IE10.

This code shows that only a couple of templates are fetched!
the afterEachTemplate function is not called when the error occurs! - But "success" gets called!

$(document).viewloader({
afterEachTemplate: function (templateId) {
console.log( $("#"+templateId).html().length )
},
success: function (successfulResolution) {
console.log("done")
} },
})

this probably isn't a viewLoader bug, but a limitation of IE.
but I think the success function should not get called.

THX to techarch for the GREAT tutorials on Knockoutjs !!!!!!!
Inspired me a lot!!!

stephan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions