Add preloadFunc to index page