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