Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!


Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 




From the folks who brought you High Rankings!

- - - - -

Comparing Form Entry To Db On The Fly - Options?

  • Please log in to reply
16 replies to this topic

#16 Randy


    Convert Me!

  • Moderator
  • 17,540 posts

Posted 29 May 2009 - 12:18 PM

Why is because a page won't finish loading until the javascript array has either loaded or timed out. 5,000 post codes x what 6 characters each in the UK = 30,000 characters that have to load before the page can complete.

If that were all that's on the page, probably not a biggie. But by the same token if the page is already filled with normal text characters and a couple of images, the array may end up being the proverbial straw that breaks the camels back.

It's something to be aware of and watch out for at least.

#17 1dmf


    Keep Asking, Keep Questioning, Keep Learning

  • Active Members
  • PipPipPipPipPipPipPip
  • 2,167 posts
  • Location:Worthing - England

Posted 29 May 2009 - 03:28 PM

Yeah but the beauty of AJAX means you can do things asyncronously which you would really like to do before page load wink1.gif

So yeah waiting for 5,000 postcodes to load into an array before the page is displayed would be a drag, but if you 'onload' them in the background; you grab them while the visitor is still analysing the page and wondering what their next course of action is going to be.

Hey it'll take em 30 seconds to fill the darn form in before they even get to the postcode field, plenty of time for AJAX to have grabbed the PAF (UK for Postal Address File) and wanged it into memory!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

We are now a read-only forum.
No new posts or registrations allowed.