I have created Sharepoint Page with custom masterpage where I have deployed my SPFx Webpart which needs some javascript files.
Sometimes the Webpart works fine but sometimes not due to my javascript called before SPFx gets loaded on DOM.(I also tried to put javascript in custom masterpage still facing same issue)
I googled out for the same and Reference
I did the modification in the javascript function with same by calling function on load event instead of ready function. After modification it works fine in chrome browser but it's not working properly in IE and Firefox.
Is there any other way to get the proper outcome.