medialab / resin-annuaire

Site de l'annuaire des expertises du Réseau d'Ingenieur USPC/SciencesPo
GNU Affero General Public License v3.0
3 stars 0 forks source link

use nunjucks template on browser side #14

Closed bmaz closed 1 year ago

bmaz commented 1 year ago

Warning: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/ Maybe I should use nunjucks.render asynchronously: https://mozilla.github.io/nunjucks/api.html#asynchronous

boogheta commented 1 year ago

Ha I didn't realise your xmlhttprequest was synchronous, async would be better indeed (otherwise it basically freezes your browser during the load)