Hi all,
I just want to have some opinions about how to handle pages vs web blocks.
I was wondering if there are any big reasons why you wouldn't have one page to contain a header and footer and move through different web blocks in the content. The use case that we have at the moment is that we have an app (PWA) that contains multiple pages that all contain the same header and footer in the layout. Navigating to one of these pages causes the layout to reload which feels unnecessary since it is going to be the exact same information and actions. It is basically only the content that changes. So instead of having 10 pages that essentially refresh the layout every time that you navigate between pages, rather have one page and 10 web blocks where the different web blocks become visible as you "navigate".
Kind regards
Stefan
Hi @Stefan van Deventer ,
Your Quires on handling pages versus web blocks in OutSystems, particularly regarding the use of a single page navigation model, touches on an essential aspect of web development: optimizing user experience and application performance. Here’s an analysis of both approaches:
Single Page with Dynamic Web Blocks
Advantages:
Challenges:
Multiple Pages with Replicated Layouts -
Recommendations:
This approach would:
You might consider:
Hi Vipin,
Please don't use ChatGPT or the like to answer on this forum. OutSystems is not well-known enough for ChatGPT or other AI products to produce meaningful answers.
having some interchangeable blocks in a single page is a valid approach
a few things to consider
Dorine
Thanks Dorine
Jip, I assumed the loading of all the JS would likely be the biggest concern. The addressing and authorization won't be a problem for this specific use case, but it is good to keep that in mind.
I guess the only way to see what the performance impact would truly be is to test it.
Thanks again
A while back, I had been working on how I would do this, but then abandoned because of lack of time.
It is gone from my personal environment (space !) but I will try to dig op a saved OAP if I can