coderifous / jquery-localize

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

Firefox takes 13.2 seconds to load JSON file, IE/Chrome take 5ms - Firefox won't load translated labels #68

Open richnwilson opened 8 years ago

richnwilson commented 8 years ago

Hi, I have a solution that works fine for Chrome/IE/Safari, but when run in Firefox it never loads the translated labels. Additionally the references JSON file takes 13 seconds to load (versus 5ms for Chrome).

How do I debug or attempt to resolve this ? Do the JSON files have to be saved in a certain way ? Kind regards Rich

richnwilson commented 8 years ago

UPDATE After some debugging, it turns out my JSON files were not stored in the correct format. Once I changed to UTF-8, everything worked great. Hope this helps someone else.

alvin0618 commented 8 years ago

You may close your issue.