a javascript prefetchrer component, give a target class and hrefs will be prefetched