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.

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