Prerender in layer pagination

Can this and L89-91 be DRYed up a little by making `_prerenderContent` do the above check and then return a boolean saying whether it's been prerendered?