I recently set up a Sharepoint Page with a custom masterpage, where I deployed my SPFx Webpart that requires certain javascript files.
While the Webpart functions correctly at times, there are instances when it doesn't work due to the javascript being called before SPFx is loaded in the DOM. I even attempted placing the javascript in the custom masterpage, but the issue persisted.
Upon researching online, I came across this helpful Reference.
To address the issue, I modified the javascript function by calling it on the load event instead of the ready function. This resolved the problem in Chrome, but unfortunately, it's still not functioning properly in IE and Firefox.
I am wondering if there might be another approach to achieve the desired outcome.