icecoder / ICEcoder

Browser code editor awesomeness
http://icecoder.net
Other
1.41k stars 348 forks source link

Look into lazy loading with loadmode.js #501

Open mattpass opened 9 years ago

mattpass commented 9 years ago

Rather than load all language modes, load them as required. This addon loads them as needed and there is an autoLoadMode option also.

Perhaps consider loading the HTML, CSS and JS as a basis and others are then loaded as needed?

mattpass commented 4 years ago

May be useful to load meta.js mode and use CodeMirror.findModeByFileName as mentioned in https://discuss.codemirror.net/t/api-for-language-detection/2565