# Multiple targets browser on the same page

**URL:** <https://clojureverse.org/t/multiple-targets-browser-on-the-same-page/4057>\
**Category:** shadow-cljs\
**Created:** [March 25, 2019, 4:46pm UTC](https://clojureverse.org/t/multiple-targets-browser-on-the-same-page/4057 "2019-03-25T16:46:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeans11](https://clojureverse.org/user_avatar/clojureverse.org/jeans11/32/1909_2.png) [@jeans11](https://clojureverse.org/u/jeans11)\
**Post date:** [March 25, 2019, 4:46pm UTC](https://clojureverse.org/t/multiple-targets-browser-on-the-same-page/4057/1 "2019-03-25T16:46:17Z")

</div>

Hi!

I wonder if it’s possible to have two builds (browser) and integrate them to the same page?

Thx

---

<div class="post-metadata">

**Author:** ![thheller](https://clojureverse.org/user_avatar/clojureverse.org/thheller/32/534_2.png) [@thheller](https://clojureverse.org/u/thheller)\
**Post date:** [March 25, 2019, 6:57pm UTC](https://clojureverse.org/t/multiple-targets-browser-on-the-same-page/4057/2 "2019-03-25T18:57:11Z")

</div>

That is generally not a good idea since both builds will include their own copy of `cljs.core` and will not be compatible with each other. Each build will bundle all of its dependencies so you are likely to include everything twice on the page which is a substantial overhead.

Why are you trying to have 2 builds in the page? Are you maybe trying to do something that `:modules` already solve?

---

<div class="post-metadata">

**Author:** ![jeans11](https://clojureverse.org/user_avatar/clojureverse.org/jeans11/32/1909_2.png) [@jeans11](https://clojureverse.org/u/jeans11)\
**Post date:** [March 25, 2019, 8:48pm UTC](https://clojureverse.org/t/multiple-targets-browser-on-the-same-page/4057/3 "2019-03-25T20:48:25Z")

</div>

Thanks @thheller for your answer!

Your are right! I’m going to use `:modules`

---

<div class="post-metadata">

**Author:** ![system](https://clojureverse.org/uploads/default/original/2X/5/51079bf9e4b7d9466242c06cf1e43b9f8bd6da14.png) [@system](https://clojureverse.org/u/system)\
**Post date:** [September 24, 2019, 8:51am UTC](https://clojureverse.org/t/multiple-targets-browser-on-the-same-page/4057/4 "2019-09-24T08:51:45Z")

</div>

Closed on September 24, 2019, 8:51am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
