directory: avoid initial fetch

If render is done on server's side, parse generated html to fetch data instead of re-requesting it again.