soft-limit.js is dependent on the drupal.js library because it uses Drupal.behaviors. This is one of those things that is easy to miss if you're looking at the site while logged in as an admin or if you have other modules enabled with JS that is dependent on it. I've done it before in one of my modules.

I found the problem today because I'm working on a site with a really stripped-down theme and not many other modules enabled. You can reproduce the issue by looking a soft-limited facet block on a site without many modules enabled while anon with Bartik enabled.

I've attached a patch. Thanks!

CommentFileSizeAuthor
soft-limit-js.patch277 bytesdcam
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dcam created an issue. See original summary.

dcam’s picture

Issue summary: View changes

Added a note about reproducing the issue to the summary.

  • borisson_ committed 55a5a26 on 8.x-1.x authored by dcam
    Issue #2892474 by dcam: soft-limit.js is dependent on drupal.js
    
borisson_’s picture

Status: Needs review » Fixed

Committed - thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.