links load before script can go through