We all use alert script for pop traffic. example:
<script>
alert("You have been randomly selected to receive a special gift!");
</script>
On my LP it is located just before the </head>
The problem is, that without this script, landing page is loading nearly 60 times faster, not only to my impression, but according to pingdom as well.
Have you noticed the same problem, is there anyway to fix it?
Try http://gtmetrix.com instead of pingdom, is the difference still that big?
I had the same issue when using the Pingdom RUM script on my landers. I'm pretty sure it's not your landing page that's loading slower, but rather a fault in the Pingdom script. The javascript alert on your LP is fooling Pingdom into thinking that the page isn't loading, since the script doesn't click "ok" on the alert. The first time I noticed this was when I was testing a javascript alert redirect in Brazil. Supposedly it was taking something like 7 seconds to load, which is bullshit because my cdn had a Brazilian data center and there's no way a 5kb file takes 7 seconds to load......
I would just use some of the page optimizer tools (blitz.io, gtmetrix, google page speed insights) to do a quick scan of your page and fix what you can. Also don't forget kraken.io for your images. Aside from that I wouldn't pay too much attention to the Pingdom script. I think the most effective method would be to split test two versions of the same page (optimized and non-optimized) and see which one performs better. After all, the conversion rate is what really matters in the end.
The lander is fine...just that pingdom doesn't handle js alerts well.
True. It happened to me also so i tested it on webpagetest.com and It worked.
Don't worry about it.
so the js alert is preventing the rest of the page form loading cause the user has to hit ok or whatever so it halts the loading of the page making it think its stalling when its actually stopped at that point in the page until the alert is bypassed, the testing site can't click teh js alert so it just sits there thinking there is more content to load.