Static variable equivalent ?

Hello,

The home page of my website executes a code when launched thanks to $.onReady() however, I want that code to run just once.
Each .js file is run each time a page is loaded so I have thought of using a static variable, however velo doesn’t seem to support static variable.

Is there other ways to accomplish my goal or is there an alternantive for static variables ?

I think this article may help you understand more the rendering process so that you can figure out what is needed for your use case. Take a look