Question on the moment, seen in someone else's layout. In it, jQuery scripts are not collected in the head, but scattered around the layout in the places where they are used (sliders and other elements). Such an arrangement of scripts is not an error, as I understand it, although it makes it difficult to read the code, but each script starts with


Is it a mistake to call this function many times? Does this cause any problems?

  • 3
    No, this is not a mistake and does not lead to any problems. And they can be scattered for the reason that someone thought of loading part of the html-code along with JS, the code of which should be responsible for the work of the loaded part of html. - Deonis
  • @Deonis, clearly, thanks for the explanation =) - Heidel