I had just completed a Drupal 8.5 site and was then told it had to support IE8 :(
This module gets you most of the way there but D8's drupal.js is Incompatible in D8.5 so essentially nothing works.
My solution was to modify the latest D7 drupal.js to work with D8.5. The functional differences are surprisingly, not that many:

  • Change Drupal.settings to use D8's drupalSettings
  • Add the new Drupal.URL functions

The attached patch will add the modified drupal.js to the modules js folder and an entry in the modules hook_library_info_alter to use this file

Comments

webfaqtory created an issue. See original summary.

imperator_99’s picture

Hey @webqfactory this patch works perfectly as far as I can see. I went from a dozen or so broken scripts to two, neither of which are related to this module!

Cheers,
Jesse.

imperator_99’s picture

The earlier patch adds the 'has_js' cookie which isn't necessary for the proper functioning of Drupal 8 - this very slightly updated patch removes that part of it.