Skip to content

loadTemplate from file causes 'Synchronous XMLHttpRequest on the main thread'... warning #88

@elgs

Description

@elgs

I'm loading a template from a separate file, like this:

$("#servers").loadTemplate("templates/server.html", servers, {isFile: true});

I got the following warning in the console:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.

If I put the template into a script tag, instead of a separate file, there is not such warning. So is there anyway to make the console warning happy if I still want to load the template from a separate file?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions