I previously hosted a static site on Dropbox, but I moved it to Bitbucket today (via these instructions). The hosting itself works just fine; I can access those hosted files as expected. But for some reason the Javascript functions that are called (via jQuery) on
$(document).ready()
aren't working properly any more. I also noticed that Bitbucket injects a Javascript snippet at the beginning of my HTML documents, which is almost certainly the culprit. When I view the Javascript console while at the Dropbox site, I get no error messages. But when I view the Javascript console while at the Bitbucket site, I get an error message: "SyntaxError: class is a reserved identifier" and a pointer to the jQuery file (over which I have no control, of course).
Does anyone know what that injected Javascript snippet is, why it would break my code, and how to work around it? Thanks!
Does anyone know what that injected Javascript snippet is
The same document that you link to in the question says:
Finally, Atlassian injects a
rum.js
script into each Bitbucket website. This script captures internal web analytics and statistics.
No idea why your site is broken though. Maybe you should file a issue report to Atlassian ?
If you want to post a link to the site, I'll take a glance at the JS myself, but I've never attempted using free online storage to host static sites.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.