Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Place different jquery codes into a single js file?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26177

    I’m very new to javascript and jquery and i was wondering if i can have multiple javascript effects (JQuery style) into a single
    .js file?

    E.g: Menu fade in out effect, lightbox effect, accordion effect all into a handy main.js file?

    #64416
    Chris Coyier
    Keymaster

    You can, and it’s generally encouraged. Keeps things neatly together and saves HTTP Requests.

    #64420

    Thanks that answer my question.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.