Optimize performance on large html page

I’m currently loading a rather large html page when I click on a button, and because of this I am experience major slow down before the page is cached. Currently around 25 second delay. It is currently loading in an .

What would be the best way to get this content loaded without experiencing this massive delay?

can you provide a codepen ?

Upon putting together a code pen it seems i’m hitting a 2 mb limit for saving.