Calling JavaScript Function

Hello Streamlit Community,

I have a streamlit application that I want to call a Javascript function when the page loads. I have tried to utilize st.components.v1.html but this renders an iframe which I don’t want. For more reference I am trying to use LogRocket SDK (Javascript) to record user interaction with my application. I feel as if there should be a simple method to be able to just call on this function from my application.

Any help would be greatly appreciated!