Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Dynamic Content, best practice question Re: Dynamic Content, best practice question

#122811

I would go this route: Write the markup for every single category container on this page, serve the content server side on the first load and then hide them with JavaScript. If the user clicks on a category link, display the according container.

So you have a valid fallback for users with no JavaScript and an easy solution to your problem. The only challenge I can imagine is the page weight if you are heavily relying on images within the categories. Then you should consider AJAX or taking the reload into account.