I’m working with approximately 1.2 MB of HTML content that I load into a code editor. Because the content is large, it takes several seconds for the editor to format and apply syntax highlighting. During this processing time, the entire application becomes slow, and other operations are delayed. Once the formatting is complete, the app returns to normal performance.
Is there a solution or optimization we can apply to handle this more efficiently?