comphist / cora

A web-based, token-level annotation tool for non-standard language data
http://www.linguistics.rub.de/comphist/resources/cora/
MIT License
10 stars 6 forks source link

Performance: Use script loader #25

Closed mbollmann closed 7 years ago

mbollmann commented 9 years ago

Originally reported by: Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann)


CorA loads a lot of JS on start-up; maybe script loaders should be considered to improve performance?


mbollmann commented 9 years ago

Original comment by Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann):


Use LAB.js and move initialization to main.js (resolves #15 and #22)

LAB.js is now used as a script loader to fetch other files; this is done in main.js (or main.login.js when on the login screen), and all initialization code (ondomready events) has been moved here as well.

Currently, this breaks compatibility with debug mode, and also, the main.js file(s) are not currently minified.