# Best way to build multiple scenes to different pages

**URL:** <https://forum.needle.tools/t/best-way-to-build-multiple-scenes-to-different-pages/1450>\
**Category:** 🌵 Needle Engine\
**Tags:** question\
**Created:** [January 23, 2023, 12:00am UTC](https://forum.needle.tools/t/best-way-to-build-multiple-scenes-to-different-pages/1450 "2023-01-23T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![discord-import](https://forum.needle.tools/user_avatar/forum.needle.tools/discord-import/32/33_2.png) [@discord-import](https://forum.needle.tools/u/discord-import)\
**Post date:** [January 23, 2023, 12:00am UTC](https://forum.needle.tools/t/best-way-to-build-multiple-scenes-to-different-pages/1450/1 "2023-01-23T00:00:00Z")

</div>

Hello, what would you suggest is the best way to build 2 scenes to 2 separate pages in the same site? I see that there is a sample for dynamic loading in the same page but im looking to have them on separate pages. Thank you!!

[Original Post on Discord](https://discord.com/channels/717429793926283276/1066806769243934721)

_by user 684577019052163090_

---

<div class="post-metadata">

**Author:** ![Marcel\_Wiessler1](https://forum.needle.tools/user_avatar/forum.needle.tools/marcel_wiessler1/32/21_2.png) [@Marcel\_Wiessler1](https://forum.needle.tools/u/Marcel_Wiessler1)\
**Post date:** [January 23, 2023, 12:00am UTC](https://forum.needle.tools/t/best-way-to-build-multiple-scenes-to-different-pages/1450/2 "2023-01-23T00:00:00Z")

</div>

For two separate pages you can export the scene or prefab by referencing them in your main export scene in a component and then set the src attribute of the needle-engine web component to the glb

---

<div class="post-metadata">

**Author:** ![Marcel\_Wiessler1](https://forum.needle.tools/user_avatar/forum.needle.tools/marcel_wiessler1/32/21_2.png) [@Marcel\_Wiessler1](https://forum.needle.tools/u/Marcel_Wiessler1)\
**Post date:** [January 23, 2023, 12:00am UTC](https://forum.needle.tools/t/best-way-to-build-multiple-scenes-to-different-pages/1450/3 "2023-01-23T00:00:00Z")

</div>

Then you can also remove the import of the gen.js in the index.html too
