Bug #23602 Bug Fixed

highlight.min.js loaded from CDN hangs / breaks CP

Version: 4.2.1 Reporter: obfuscode

EE4 requires the highlight.min.js from Cloudflare which hangs / breaks the CP when developing offline as while the browser is trying to resolve the host, the JS actions for switching Tabs on Edit Entry just reload the page.

Also, the script tag uses //cdnjs.cloudflare.com but http is not allowed with the Cloudflare CDN so if you’re dev’ing on a non-HTTPS site, it returns a 307 internal redirect to the https version and highlight.min.js shows up twice in the Network panel.

  • Interesting that only Chrome shows the 307 redirect, and even a direct curl returns a 200 response on http with Cloudflare’s CDN. But, moot point, we’ve just updated highlight.js and included a local copy instead of using their CDN copy for the next patch release. Thanks @obfuscode!

    Derek Jones
    11th May, 2018 at 12:10pm

You must be signed in to comment on a bug report.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases