Having inline JavaScript slows down page loading and rendering. We should be using JavaScript Behaviors inside our own JavaScript file instead.

Comments

robloach’s picture

Status: Active » Needs review
StatusFileSize
new1.05 KB
new7.62 KB

This patch removes the inline JavaScript and uses Drupal settings and a behavior instead. You'll need to place superfish.js in the Superfish module folder.

robloach’s picture

StatusFileSize
new8.84 KB

Here's a unified patch for it.

joelstein’s picture

Status: Needs review » Reviewed & tested by the community

This patch worked for me!

mehrpadin’s picture

Hey there,

Thanks Rob! thanks Joel! next version coming soon!

mehrpadin’s picture

Status: Reviewed & tested by the community » Fixed

v1.9-beta3 is out :)

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