Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: hljs is not defined #8

Closed
rwstauner opened this issue Jun 29, 2014 · 2 comments
Closed

ReferenceError: hljs is not defined #8

rwstauner opened this issue Jun 29, 2014 · 2 comments

Comments

@rwstauner
Copy link
Contributor

From the mailing list:

This is Iceweasel 32.0a2 running on Debian sid.

When I point it to http://explorer.metacpan.org I get a perfectly blank
page (except for the <title>), with an error in the console saying
"ReferenceError: hljs is not defined" at app.js:103.

Please tell me what other information I should provide.

It might be an issue that hljs is being loaded from another site.

We've discussed before that perhaps we should merge those dependencies in and jam them into one script file.

@rwstauner
Copy link
Contributor Author

Are you running NoScript (or something else that blocks scripts from
third parties)?

I am using NoScript, and the only domain that is blocked is
yandex.st (which is where hljs comes from). I have unblocked it, but the
result is the same.

Can you tell if that script is being loaded?

It probably isn't. The network panel shows that the highlight.min.js
script is downloaded successfully, but it does not show up in the
Debugger panel.

Oh, I've found the problem. The Disconnect addon was blocking the
request, thinking it is an 'Advertising' request.

We've discussed before that perhaps we should merge those dependencies
in and jam them into one script file.

This sounds like a good plan, because it would prevent problems such as
mine.

@rwstauner
Copy link
Contributor Author

hljs is now packed in our single script file so this issue should be fixed.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant