Having inline JavaScript slows down page loading and rendering. We should be using JavaScript Behaviors inside our own JavaScript file instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1194244.patch | 8.84 KB | robloach |
| #1 | javascript.patch | 7.62 KB | robloach |
| #1 | superfish.js_.txt | 1.05 KB | robloach |
Comments
Comment #1
robloachThis 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.
Comment #2
robloachHere's a unified patch for it.
Comment #3
joelstein commentedThis patch worked for me!
Comment #4
mehrpadin commentedHey there,
Thanks Rob! thanks Joel! next version coming soon!
Comment #5
mehrpadin commentedv1.9-beta3 is out :)