coderifous / jquery-localize

a jQuery plugin that makes it easy to internationalize your web site.
465 stars 142 forks source link

Loading JSON file twice for some reason #93

Closed jdelk closed 7 years ago

jdelk commented 7 years ago

This is the code I have:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="/js/jquery.localize.min.js"></script>
<span data-localize="test">Testing</span>
<script type="text/javascript">
$(document).ready(function() {
    $("[data-localize]").localize("json/lang", { language: "en" });
});
</script>

When I look at chrome's network panel it shows that it's loading lang-en.js twice.

How do I fix this?

Thanks.

jdelk commented 7 years ago

It stopped happening. I don't know what caused it though. Might have been a problem with nginx.