Bugfix check for inline scripts

A check is made in case scripts are inline before getting the url and
setting it as loaded