One of the advantages of accordions is that they allow you to read large tracts of text a little at a time.
As a consequence, we don't need to load all of the content as soon as the page is displayed, if it's not immediately required.
We should be able to simply show the available accordion panels, and when an accordion is selected, load its content from the server as the browser expands the panel.
To demonstrate this, I've written an example using a book, Great Expectations, by Charles Dickens.
You would most likely not sit down in front of your screen and read the whole book in one sitting. It makes sense that ...