Going through the lightning visualforce report i ran accross some JS i needed to replace. Here's my problem, my googlfoo is failing me when it comes to replacing window.onload. Here's one code snippet.What would i do in an instance such as this one.<script>
window.onload=function()
{
document.getElementById('{!$Component.theForm.themes.addThemes.gtTable.tcRows}').focus();
};
</script>
</apex:outputPanel-->
You have to either this options .. 1 . Init handler with doInit as shown below<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> 2.Or ltng:required<ltng:require scripts="{!$Resource.resourceName}" afterScriptsLoaded="{!c.afterScriptsLoaded}" />