Grow your CSS skills. Land your dream job.

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.

*May or may not contain any actual "CSS" or "Tricks".