Avatar of stellaartois
stellaartois
Flag for United Kingdom of Great Britain and Northern Ireland asked on

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

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
jQuery

Avatar of undefined
Last Comment
stellaartois

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
leakim971

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
stellaartois

ASKER
Thank you for your insight!
Your help has saved me hundreds of hours of internet surfing.
fblack61