Load resources before viewing page