Home > Paid Traffic Sources > Mobile

Alert Script on MObile LP increase load time from under 1s to 60s (7)


06-11-2015 05:43 PM #1 rafael3000 (Member)
Alert Script on MObile LP increase load time from under 1s to 60s

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?


06-11-2015 05:59 PM #2 dragoshsd (Member)

Try http://gtmetrix.com instead of pingdom, is the difference still that big?


06-11-2015 06:04 PM #3 zeroonedigital (Member)

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.


06-11-2015 06:08 PM #4 rafael3000 (Member)

Quote Originally Posted by dragoshsd View Post
Try http://gtmetrix.com instead of pingdom, is the difference still that big?
no, gtmetrix gives alsmost the same load speed with or without the script. So seems like it is the Pingdom that gives false results.


06-11-2015 07:32 PM #5 pain2k (Veteran Member)

The lander is fine...just that pingdom doesn't handle js alerts well.


06-11-2015 10:19 PM #6 omrikos (Member)

True. It happened to me also so i tested it on webpagetest.com and It worked.
Don't worry about it.


06-12-2015 12:39 AM #7 heavyt (Senior Member)

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.


Home > Paid Traffic Sources > Mobile