title: Get response from webpage after x seconds of page loading (file_get_contents)
body: <p>Is there any way of getting a webpage response after x seconds of it loading?</p>
  
  <p>For example i want to create an api that gets the number of comments of a youtube video, but as you might know when you open a youtube video link its like 2 seconds loading the comments, so if you know any other way of getting the youtube comments number it would help as well, but if you can answer to the first question please answer.</p>