Another question from our Tridion GUI 8.5 upgrade.
I have discovered that many of the problems we've been facing in this upgrade are because the Tridion Resources (<cc:tridionManager>) are not loading until AFTER the on-page javascript runs.
Can I move the javascript to an external file, and load it somehow through Tridion manager? Or is there a "fully loaded" Tridion event I can listen for before triggering our javascript?
Currently I'm using a setTimeout, but I'm sure there must be a better way.
<cc:tridionmanager runat="server" Editor="CME" IsStandAloneView="false">
<dependencies runat="server">
<dependency runat="server">Tridion.Web.UI.Editors.CME</dependency>
<dependency runat="server">Tridion.Web.UI.Editors.Base.Views</dependency>
</dependencies>
</cc:tridionmanager>
<script type="text/javascript> INLINE JAVASCRIPT HERE IS RUNNING BEFORE RESOURCES LOAD</script>