fabi1cazenave / webL10n

Client-side internationalization / localization library
http://fabi1cazenave.github.com/webL10n/
279 stars 71 forks source link

Start localization immediately if l10n.js is loaded with <script defer> #32

Closed timdream closed 11 years ago

timdream commented 11 years ago

Here is a more simpler approach. Instead of #31, with <script defer>, the script should localize the content immediately and don't wait for DOMContentLoaded; thus, l10n.js could safely ignore issue #30.

timdream commented 11 years ago

Noted that this patch doesn't include gReadyState = 'interactive'; separate patch is required to address that.

fabi1cazenave commented 11 years ago

@timdream please check #33 and tell me if that does the job for gReadyState == 'interactive'