chore(build): speed up page by deferring loading of files

Only load the files when needed. Cache them after they're loaded.