I am creating a business directory.
on the directories listing page where all the businesses are listed, I have that when you hover over the thumbnail of a listing it shows a google map and some info for that listing.
I can do this 2 ways:
I can have the thumbnail and the google maps (might be 50 of them loading on 1 page) and info all loaded on page load and then hide the info and maps till hover on. This means everything is loaded onto the page.
I can have the thumbnails load and then on hover have ajax grab the info from another page.
which one is smarter and faster?
i’ve never used ajax to load things before, so Im itching to try it.
If you were to go about using ajax just dont forget about using $.Deferred because you can have so much more control, but like i said, i wouldn’t go the ajax route just yet.