checkLoaded should use getAttribute for links 

Links loaded before ljs should be checked with getAttribute('href') instead of href to avoid problems with relative paths.