mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Some extensions are statically imported inside script.js, bypassing the extension load method. The true method to solve this is using dynamic imports and undefined checks, but implementing this is extremely time-consuming. For now, add the extension_first_load event which fires when first load is about to start. This changes loading priority to static -> offline -> online/API. In addition, initialize the event source earlier since it's more important than most of the other imports. Signed-off-by: kingbri <bdashore3@proton.me>