My google PageSpeed result is telling me that I should remove render-blocking scripts, and lists https://cdn.localizejs.com/localize.js as one.
With the help of the https://www.drupal.org/project/async_js contrib module, we should be able to add support for async by doing something like this...
- drupal_add_js('https://cdn.localizejs.com/localize.js', 'external');
+ drupal_add_js('https://cdn.localizejs.com/localize.js', array('external', 'async_js' => TRUE));
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | localizejs-async-2920965-2.patch | 632 bytes | jenlampton |
Comments
Comment #2
jenlamptonPatch for review.
Comment #4
eleonelThank you for your help, fix included in 7.x-1.5 version.
Cheers.
Comment #5
eleonel