Forums

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

Home Forums JavaScript How to combine more .JS files

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #34246
    aoeui
    Participant

    hi,

    not much worked with .JS and jQuery before
    so I am not really sure how to properly join multiple .JS files in to one in order to save server requests

    QUESTION 1

    install info for plugin says

    so I took it and put in 1 common file script.js
    adn I put it in there like this


    jQuery(document).ready(function($){
    $('.lightbox').lightbox();
    });

    is it ok?

    *
    *

    I had
    1 file for slider +
    1 file for lightbox +
    1 file for my custom .JS if needed anywhere

    I am not combining plugins files but only the parts the trigger it where needed

    is it okay to combine them this way?
    http://krsiak.cz/js/script.1.0.5.js

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