Delay creating pretty codeblocks

Only create the codeblocks when opening for the first time, to make the page load faster.
Fixes #112