troubleshooting Question

jQuery AJAX and/or PHP for initial load - opinion question

Avatar of stellaartois
stellaartoisFlag for United Kingdom of Great Britain and Northern Ireland asked on
jQuery
2 Comments1 Solution215 ViewsLast Modified:
Hello,

I'm developing a web application where some pages have a number of items that are shown.

At the moment, I load the items during the initial page load within my PHP code by echoing the code on to the page, then if the user clicks "more" the additional items load through an AJAX query, that are then added to the DOM.

Is this normal practice to use more than one way of loading items on to the page?

Should I go to using AJAX to load the items upon page load?  If I do this, are there any problems that can arise from doing this?

Thanks for your opinions/personal experiences,

Luke
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros