Is it possible that external JS code is loaded after Toc code

I have the following extra code

The code should be loaded after Toc Code, currently I use setTimeout

Hey @Mert_Arslan! You can use this callback to execute code after the solution has been loaded.

  window.fsAttributes = window.fsAttributes || [];
    (tocInstances) => {
      console.log('toc Successfully loaded!');
      //Add code here