#How can you specify the order of execution of client-side scripts ?

5 messages · Page 1 of 1 (latest)

glacial ridge
#

How can you specify the order of execution of client-side scripts ?
I'm sharing some data between components and doing that initialisation in the <script> of the BaseLayout.astro. The problem is that it doesn't run first.
Is there a built-in way to decide which script runs first or do I have to implement that myself ?

turbid flowerBOT
#
No-one around right now?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

glacial ridge
#

looked around didn't find anyway to do so

#

my solution: listening for a custom "onappready" event

lime urchin
#

I think that's the right way of doing it 👍