Advanced prefetching, and a prime function to catch preloaded scripts