Reorder prerender code