How do I make a web scraping tool wait for a page to load before moving on with the script?

I am using a file that Leith Ross posted on another thread in order to get HTML code from web pages.

This works great in most instances. But when trying to get the code from slow loading pages I get an error code.

The file I'm using is attached.

Web-Scaper.xlsm