Hi Alex. Unfortunately when I enable the module I get a white screen of death and a js error:

TypeError: Cannot call method 'removeEventListener' of null

This is using latest stable with Chrome on OS X. Also happens in Firefox 4. The page loads, shows the content for a brief flash and then white screens. Firefox 4 just loads the page indefinitely.

Comments

tanc’s picture

Pages that do load, like /admin/build/modules, reveal a js error: Uncaught ReferenceError: nol_t is not defined

alexweber’s picture

Priority: Normal » Critical

hmm, weird, what headjs settings are enabled?

tanc’s picture

Everything is standard as its quite hard to actually get to the settings for HeadJS. The issue occurs as soon as its installed. Its no doubt a conflict with something installed on this production ready site and there are numerous scripts being used including two or three advertising scripts doing document writes and a couple of tracking scripts in the footer (not through drupal_add_js).

tanc’s picture

I've found the code that is causing the white screen issue, its a document write:

$url = 'http://player.cdn.vioapi.com/ads/Script.axd';
$js = 'document.write(unescape("%3Cscript src=\''. $url .'\' type=\'text/javascript\'%3E%3C/script%3E"));';
drupal_add_js($js, 'inline'); // otherwise use the standard drupal method
drupal_add_js(drupal_get_path('module', 'tspec_videos') . '/tspec_videos.js');

Do I need to wrap this in something special?

alexweber’s picture

Thanks for the feedback, I'lk try to find time to look into this later this week.

alexweber’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Assigned: Unassigned » alexweber
Status: Active » Needs review

should be fixed in dev release and new beta, both releases should be available in a couple hours!

alexweber’s picture

Assigned: alexweber » Unassigned
alexweber’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

closing due to 2 weeks of inactivity, if anyone experiences this please re-open, thanks!

alexweber’s picture

Status: Needs review » Closed (fixed)