The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Place different jquery codes into a single js file?

  • # September 19, 2009 at 7:23 am

    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?

    # September 19, 2009 at 10:59 am

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

    # September 19, 2009 at 1:04 pm

    Thanks that answer my question.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed