Performance
Don't have an Instabot account yet?
Will Instabot's script slow down my website's load time or otherwise affect performance?
No, it won't. The Instabot script has been designed to load in a non-blocking manner, and should never cause your site to perform slowly. With that said, here's some additional technical information on how our script operates, and how you can tweak and optimize its loading characteristics depending on your deployment environment
Additional technical details
- The loading of our script is non-blocking which means it does not impact the performance of a page's initial load because the script is engineered to start working after the page load event.
- Most of our requests are cached on the client-side (after loading it for the first time) as to reduce unnecessary network calls
- We recommend using
- If you use GTmetrix to measure your site's load performance, the tool may incorrectly flag the Instabot script as a slow-loading resource - this is due to the fact that GTmetrix differentiates between "Onload" time and "Fully loaded" time (see FAQ here
-- if you still want to address this - you can embed the Instabot JavaScript in a manner that delays the loading of it by time (shown below) - we recommend 2.5s delay
<script type="text/javascript">
(function() {
function runOnLoad() {
var element = document.createElement("script"),
tags = document.getElementsByTagName("script"),
m = tags[tags.length - 1];
element.async = 0;
element.src = "https://widget.instabot.io/jsapi/rokoInstabot.js?apiKey=<INSERT-YOUR-URL-ENCODED-API-KEY";
m.parentNode.insertBefore(element, m);
}
function instabotDelay() {
setTimeout(runOnLoad, 2500);
}
if (window.addEventListener) {
window.addEventListener("load", instabotDelay, false);
} else if (window.attachEvent) {
window.attachEvent("onload", instabotDelay);
}
})();
</script>
Updated about 4 years ago