canvas-lms/gems/i18n_tasks
Ryan Shaw b99068d79c speed up translations loading
According to https://v8.dev/blog/cost-of-javascript-2019#json
If you use JSON.parse instead of object literals for large objects like
our i18n strings, it is faster.

Testing this locally in prod mode it made the time to evaluate main.js
go from 783ms (https://cl.ly/371ceb866fe4) 
to 607ms (https://cl.ly/c2ce9eb82f7e)

Test plan:
* i18n strings should work the same as they always have
* pages should load a tiny bit faster in prod

Change-Id: Icc3dbd07e87f60d40e523d454917f865fdb39d7d
Reviewed-on: https://gerrit.instructure.com/199209
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-07-01 15:25:30 +00:00
..
lib speed up translations loading 2019-07-01 15:25:30 +00:00
spec da licença part 53 2017-05-01 21:06:11 +00:00
.rspec extract i18n_tasks gem 2014-04-21 03:19:47 +00:00
Gemfile bump simplecov, fixes SD-2056 2017-04-04 18:06:25 +00:00
Rakefile extract i18n_tasks gem 2014-04-21 03:19:47 +00:00
i18n_tasks.gemspec use psych to export locale yml 2019-01-30 12:42:13 +00:00
test.sh simplify gem test harnesses 2016-01-19 17:52:58 +00:00