···213213 <List items={demos} />
214214 </section>
215215216216+ <!-- CROSS-ORIGIN -->
217217+ <section>
218218+ <h2 id="cross-origin">Cross-Origin</h2>
219219+220220+ <p>
221221+ You can use applets from different origins. However, one important caveat to remember is <a
222222+ href="https://developer.mozilla.org/en-US/docs/Web/Privacy/Guides/State_Partitioning#state_partitioning"
223223+ >state partitioning</a
224224+ >. This causes local state (eg. IndexedDB) to be different when the applet is used on a
225225+ different domain versus using the applet directly. There might be ways around state
226226+ partitioning, but I haven't found a user-friendly way of doing so.
227227+ </p>
228228+229229+ <p>
230230+ <strong
231231+ >That said, there isn't that much local state that needs to be shared cross origin.</strong
232232+ > Much of it is associated with the input applets and that configuration is saved in your chosen
233233+ output applet. So essentially, state partitioning behaves as if the two domains are on different
234234+ devices; so using an output applet to sync data works nicely.
235235+ </p>
236236+ </section>
237237+216238 <!-- BUILD YOUR OWN -->
217239 <section>
218240 <h2 id="yours">Build your own</h2>
···224246225247 <ul>
226248 <li>
227227- Haven't tested this idea cross-origin. No idea if the applets work when included on a
228228- different origin (though it should).
229229- </li>
230230- <li>
231231- Currently using a fork of the web applets SDK that adds a few features (waiting on PRs).
232232- Meaning that it won't be as easy to write your own applets in the same way as done here.
249249+ This is currently using a fork of the web applets SDK that adds a few features (waiting on
250250+ PRs). Meaning that it won't be as easy to write your own applets in the same way as done
251251+ here.
233252 </li>
234253 <li>
235254 I wrote some custom code on top of the web applets SDK that makes the applets talk to each
···237256 web applets SDK. Though you can just copy-paste from the Diffuse repo if you want (it's
238257 not that much code).
239258 </li>
240240- <li><em>... Probably a bunch of stuff I'm forgetting, teaching materials, ...</em></li>
259259+ <li><em>... Probably a bunch of stuff I'm forgetting, teaching materials, etc ...</em></li>
241260 </ul>
242261 </section>
243262 </main>