I'm trying to experiment some JS loaders, but already had problem in the first tentative. Using LABjs (http://drupal.org/project/labjs), Shadowbox doesn't work anymore. As both don't have too much configuration about the JS part, I don't have too much to work in.

In another way, it's good to confirm that Shadowbox works fine with Advanced CSS/JS Aggregation (http://drupal.org/project/advagg), required by LABjs, and by just using the module it already gives us a good boost in load performance.

Comments

manfer’s picture

I don't understand that about the need of advagg, I can't see that dependency in labjs module.

What I only have tested is labjs and I have found this.

If you follow the labjs installation instructions you have to install the module as you do with any other module and besides you have to install the labjs library in sites/all/libraries (I think only for actual 7.x version of the module that is not needed anymore but for 6.x version it is still needed). So they instruct us to download the labjs library and install it in a folder called labjs inside sites/all/libraries.

What I did was to download the labjs library, extracted that one so I get a folder LABjs-2.0.3 with the library files. I uploaded that folder to sites/all/libraries and renamed it to labjs. Doing so makes shadowbox stop working. And the problem is that the LABjs-2.0.3 folder (later renamed to labjs) had very restrictive permissions so I was hitting a 403 forbidden when the LAB.min.js file was requested.

The solution was to just modify the labjs folder permission to 755 and shadowbox starts to work with labjs. (So the problem was in labjs and not in shadowbox). I suppose all javascript libraries are going to fail if you install labjs and the file LAB.min.js can't be loaded because of permission issues.

Check if that is the problem and please report back if that solves the issue.

manfer’s picture

Status: Active » Postponed (maintainer needs more info)
manfer’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No new feedback so I consider this issue resolved