adding missing resources, adjust the check to be in the page content div