I propose to introduce an empty file for scripts, such as custom.js

and in .info file insert scripts[] = custom.js

in custom.js for example in D7:

jQuery.noConflict();
(function($){

$(document).ready(function() {
// Your code hire
//$("a").addClass("myClass");
});

$(window).load(function(){
// or hire
});

})(jQuery);

Comments

andregriffin’s picture

Hm, while a lot of people may end up doing this customization on their own, I'm kind of a stickler for keeping the amount of things rolled into the vanilla Framework down to a minimum. I think most people who do require custom JS are capable enough to add the line to their .info file themselves. Though I think this would be a good thing to include in the readme for those who may need it.

What exactly is the JS doing in your provided example?

andregriffin’s picture

Status: Active » Closed (works as designed)