Answer the question
In order to leave comments, you need to log in
How to concatenate JS and wrap it in $(document).ready()?
I want to split my code into subfiles with the implementation of different page elements in them. jQuery is needed to execute each such code.
the question is how to store all this in different files, and concatenate into one?
Answer the question
In order to leave comments, you need to log in
Can be done via gulp-include
jQuery(document).ready(function($) {
//=include include/_header.js
//=include include/_slider.js
//=include include/_shop.js
//=include include/_range.js
//=include include/_tabs.js
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question