prettify.js not working on site getskeleton.com
Just noticed prettify.js not working on your site. Looks like a link problem.
After going through the network logs (in chrome dev tools) I see that browser is receiving HTTP 404. The url in the page is not valid anymore. On trying the url directly, got following error.
- That’s an error.
The requested URL /svn/loader/run_prettify.js was not found on this server. That’s all we know.
Solution:
Change the url to https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js
Let me know if you want me to fix it.
I threw together a simple function I could run in the JS Console to enable prettify for the time being.
(function(url) {
var js = document.createElement('script');
js.src = url;
document.body.appendChild(js);
})('https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js');
I'm not sure how else to work around it at this time.