I've been getting the HTML code from an external page for a while, lately they've moved to loading some content via AJAX which means when I do this

$file = file_get_contents($url);

I've getting the HTML from the original page less the content needed.

Any ideas how I can 'sleep' the code while it loads or do something else for 10 seconds?