mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Added minified version of JS and reduced their number to speed-up page load
This commit is contained in:
parent
94c4318972
commit
7cd7050cde
7 changed files with 39 additions and 2 deletions
33
httpdocs/js/Makefile
Normal file
33
httpdocs/js/Makefile
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
|
||||
JQUERY_BOOTSTRAP_MIN_JS=jquery_bootstrap.min.js
|
||||
JQUERY_BOOTSTRAP_MIN_JS_SRC=jquery.js jquery-ui.js bootstrap.js\
|
||||
bootstrap-datatable.js bootstrap3-typeahead.js\
|
||||
d3.v3.js jquery.peity.js bootstrap-slider.js\
|
||||
bootstrap-datetimepicker.js
|
||||
|
||||
DEP_MIN_JS=deps.min.js
|
||||
DEP_MIN_JS_SRC=rickshaw.js pie-chart.js gauge.js \
|
||||
crossfilter.js validator.js validator.js \
|
||||
dc.js cal-heatmap.js nv.d3.js \
|
||||
jquery.bootstrap-duallistbox.js jquery.are-you-sure.js
|
||||
|
||||
NTOP_MIN_JS=ntop.min.js
|
||||
NTOP_MIN_JS_SRC=springy-ntop.js springyui-ntop.js datatable_utils.js\
|
||||
ays_utils.js moment.js
|
||||
|
||||
|
||||
|
||||
|
||||
minify: $(JQUERY_BOOTSTRAP_MIN_JS) $(DEP_MIN_JS) $(NTOP_MIN_JS)
|
||||
|
||||
$(JQUERY_BOOTSTRAP_MIN_JS): $(JQUERY_BOOTSTRAP_MIN_JS_SRC) Makefile
|
||||
uglifyjs -o $@ --source-map $@.map -- $(JQUERY_BOOTSTRAP_MIN_JS_SRC)
|
||||
|
||||
$(DEP_MIN_JS): $(DEP_MIN_JS_SRC) Makefile
|
||||
uglifyjs -o $@ --source-map $@.map -- $(DEP_MIN_JS_SRC)
|
||||
|
||||
$(NTOP_MIN_JS): $(NTOP_MIN_JS_SRC) Makefile
|
||||
uglifyjs -o $@ --source-map $@.map -- $(NTOP_MIN_JS_SRC)
|
||||
|
||||
clean:
|
||||
rm -f $(QUERY_BOOTSTRAP_MIN_JS) $(DEP_MIN_JS) $(NTOP_MIN_JS) *.map
|
||||
File diff suppressed because one or more lines are too long
1
httpdocs/js/deps.min.js.map
Normal file
1
httpdocs/js/deps.min.js.map
Normal file
File diff suppressed because one or more lines are too long
1
httpdocs/js/jquery_bootstrap.min.js.map
Normal file
1
httpdocs/js/jquery_bootstrap.min.js.map
Normal file
File diff suppressed because one or more lines are too long
1
httpdocs/js/ntop.min.js.map
Normal file
1
httpdocs/js/ntop.min.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue