In the docs for how to self-host Rudderstack, it s...
# support
a
In the docs for how to self-host Rudderstack, it seems like we load the rudderstack javascript after we call rudderanalytics.load(). Isn't there anything bad that would happen if we switch the order? We're trying to fix some race conditions but don't want to introduce any unintended behaviors. Docs here: https://www.rudderstack.com/docs/user-guides/how-to-guides/self-hosting-js-sdk/
h
Can you expand what you mean by switching the order
👍 1
a
I mean putting:
Copy code
<script src="https://<subdomain>.<yourdomain>.com/<path-to-sdk-base-directory>/rudder-analytics.min.js"></script>
In front of:
Copy code
<script>
// rudderanalytics object initialization
// provide the location of the destination SDKs in the load options
rudderanalytics.load(WRITE_KEY, DATA_PLANE_URL, {
    destSDKBaseURL: "https://<subdomain>.<yourdomain>.com/<path-to-integration-sdks-directory>"
});
// ...
</script>
Instead of the other way around
h
nope it will just work
🙌 1