Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds requirejs, and load CodeMirror via requirejs and other optimizations #309

Merged
merged 1 commit into from
Oct 24, 2017
Merged

Adds requirejs, and load CodeMirror via requirejs and other optimizations #309

merged 1 commit into from
Oct 24, 2017

Conversation

schalkneethling
Copy link

@stephaniehobson r?

This improves the perceived performance of the JS editor so, now the main loading of the iframe is under 1 second(~600ms) on 3G. CodeMirror is then loaded by requirejs, and the download of the scripts and init of the editor takes another ~1s

I made some other tweaks, one that also made some performance impact is to only register event handlers later in the initialization phase.

@schalkneethling schalkneethling added the enhancement Improves an existing feature. label Oct 23, 2017
@stephaniehobson stephaniehobson merged commit 6f46f7b into mdn:master Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants