# SPA Best Practice

**URL:** <https://community.weweb.io/t/spa-best-practice/8128>\
**Category:** Ask us anything\
**Created:** [April 15, 2024, 5:32pm UTC](https://community.weweb.io/t/spa-best-practice/8128 "2024-04-15T17:32:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amastar](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@amastar](https://community.weweb.io/u/amastar)\
**Post date:** [April 15, 2024, 5:32pm UTC](https://community.weweb.io/t/spa-best-practice/8128/1 "2024-04-15T17:32:47Z")

</div>

Hi guys general question.

If I have an SPA. Do you recommend building one page and hiding views based on conditional rendering? OR Having separate pages for each view but utilising sections across the pages for common areas?

I’m evaluating this from a performance and best practice perspective

Thanks

---

<div class="post-metadata">

**Author:** ![thomlov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/thomlov/32/8591_2.png) [@thomlov](https://community.weweb.io/u/thomlov)\
**Post date:** [April 15, 2024, 5:50pm UTC](https://community.weweb.io/t/spa-best-practice/8128/2 "2024-04-15T17:50:54Z")

</div>

Just a note, if you have private pages, and you want a snappy and fast app, go with conditional rendering.  
Weweb checks with the auth server on every page load, and that takes time. Using conditional rendering my app is a lot faster.
