Hosting breaks Javascript (?)

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!

3 answers

1 accepted

This widget could not be displayed.

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 ?

Oh, I guess I didn't notice that on the page, but I bet that you're right. I'll file an issue report. Thanks!

This widget could not be displayed.

Seriously? Nobody?

This widget could not be displayed.

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,196 views 8 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you