Abandoment to blame for the last JavaScript file not always being loaded?
- by Larsenal
I have a code snippet for an app that users are loading as a 3rd party script on their site. The general sequence is as follows:
Site loads http://www.example.com/foo.js
foo.js does stuff
1 to 2 seconds later, foo.js loads bar.js
Now in a perfect world, I'd want to see matching counts for the calls to foo.js and bar.js. However, bar.js loads only about 94% of the time. I'm wondering how much of this discrepancy might be attributable to site abandonment given the fact that bar.js is delayed by 1 or 2 seconds.
I posted here instead of StackOverflow since I think it's more a question about what would be typical time on page when users abandon the page.