Just imagine, you use sitespeed to monitor your website , and your website throws a javascript alert popup – this will usually throw some error. To fix this issue, you can try this script: