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, byCharles 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 if you are going to read a long piece of text on the screen, it would be broken up into chapters or other sections, and you would choose which one to read.
To try this example out, create a new demo directory and download a book in text format into it. I downloaded my example text file from http://www.gutenberg.org/etext/1400 (plain text, ISO-8859...