# Can I split my html file into multiple html files?

**URL:** <https://forums.creativeclouddeveloper.com/t/can-i-split-my-html-file-into-multiple-html-files/5859>\
**Category:** UXP Plugin API\
**Created:** [February 15, 2023, 11:26pm UTC](https://forums.creativeclouddeveloper.com/t/can-i-split-my-html-file-into-multiple-html-files/5859 "2023-02-15T23:26:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![akborges](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/akborges/32/4270_2.png) [@akborges](https://forums.creativeclouddeveloper.com/u/akborges)\
**Post date:** [February 15, 2023, 11:26pm UTC](https://forums.creativeclouddeveloper.com/t/can-i-split-my-html-file-into-multiple-html-files/5859/1 "2023-02-15T23:26:18Z")

</div>

I want to take the dialogs from my main html file and put them into their own files that link to the main html file. I saw that iframes and JQuery are unsupported, [https://developer.adobe.com/photoshop/uxp/guides/uxp\_guide/unsupported/](https://developer.adobe.com/photoshop/uxp/guides/uxp_guide/unsupported/), so I’m not sure how to go about it. Any guidance is appreciated!

---

<div class="post-metadata">

**Author:** ![Timothy\_Bennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/timothy_bennett/32/1251_2.png) [@Timothy\_Bennett](https://forums.creativeclouddeveloper.com/u/Timothy_Bennett)\
**Post date:** [February 15, 2023, 11:57pm UTC](https://forums.creativeclouddeveloper.com/t/can-i-split-my-html-file-into-multiple-html-files/5859/2 "2023-02-15T23:57:50Z")

</div>

Here you go - ignore the mention of WebViews

> [@UXP WebView support for loading local html content](http://forums.creativeclouddeveloper.com/t/uxp-webview-support-for-loading-local-html-content/5642/13):
>
> I load all my plugin HTML this way except for a basic layout that houses the loaded content. const path = \<path to an html file\>; const content = await fetch(path).text(); const container = document.querySelector("#\<id of element in main html file in which to insert content\>"); container.innerHTML = content;

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [February 16, 2023, 10:55am UTC](https://forums.creativeclouddeveloper.com/t/can-i-split-my-html-file-into-multiple-html-files/5859/3 "2023-02-16T10:55:31Z")

</div>

Some people are using React and its components to achieve something similar. It is much better than JQuery but it also requires learning much more than just injecting some HTML in some DIV. But it is worth it if you plan to develop a lot of plugins or just one very complicated one.

---

<div class="post-metadata">

**Author:** ![Timothy\_Bennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/timothy_bennett/32/1251_2.png) [@Timothy\_Bennett](https://forums.creativeclouddeveloper.com/u/Timothy_Bennett)\
**Post date:** [February 16, 2023, 11:54am UTC](https://forums.creativeclouddeveloper.com/t/can-i-split-my-html-file-into-multiple-html-files/5859/4 "2023-02-16T11:54:27Z")

</div>

I use Vue and am still making sense of getting it running properly under UXP!
