Summary
When viewing a YAML file that includes lots of trailing spaces, Codemirror treat each space as a separate token, and by processing them all performance is impacted heavily, in some cases waiting more than 1 minute, during this time the browser freezes.
Steps to Reproduce
- Commit and push sample file (only 3.79 KB) to any repository
- Go to source and view sample file
Expected Results
BBS should render in seconds
Actual Results
Browser freezes and takes around 1minute to render the page
Workaround
Remove all trailing spaces from yaml file.