Specifying JavaScript Libraries Included in the Page

Similar to the CSS file, there are two text files listing all JS files 

  1. Open source JS files
  2. Application specific JS files.

A Sample listing of open source JS files

# Required by TrilloJS framework
https://code.jquery.com/jquery-3.2.1.js
https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.js
/$org_name$/_vendor/material/js/core/bootstrap-material-design.min.js
https://cdnjs.cloudflare.com/ajax/libs/jquery.perfect-scrollbar/0.8.1/js/perfect-scrollbar.jquery.js
/$org_name$/_vendor/material/js/material-dashboard.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.3/moment.js
https://cdnjs.cloudflare.com/ajax/libs/jquery-tokeninput/1.7.0/jquery.tokeninput.js
https://cdnjs.cloudflare.com/ajax/libs/jquery.devbridge-autocomplete/1.4.8/jquery.autocomplete.js
https://cdnjs.cloudflare.com/ajax/libs/autosize.js/3.0.8/autosize.js
https://cdnjs.cloudflare.com/ajax/libs/purl/2.3.1/purl.js
https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.js
https://cdnjs.cloudflare.com/ajax/libs/javascript-debug/0.4/ba-debug.js
https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.js
https://cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.js
https://cdnjs.cloudflare.com/ajax/libs/string-mask/0.3.0/string-mask.js
# Not available on CDN, served by Trillo server.
https://www.trillo.io/lib/js/jquery.history-master/jquery.history.js

# You can comment or uncomment following lines as needed
https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.1.2/flatpickr.js
#https://cdn.datatables.net/1.10.16/js/jquery.dataTables.js
#https://cdn.datatables.net/buttons/1.5.1/js/dataTables.buttons.js
#https://cdn.datatables.net/buttons/1.5.1/js/buttons.print.js
#https://cdn.datatables.net/buttons/1.5.1/js/buttons.html5.js
#https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.js

/$org_name$/_vendor/material/js/plugins/jquery.dataTables.min.js
/$org_name$/_vendor/material/js/plugins/bootstrap-selectpicker.js
/$org_name$/_vendor/material/js/plugins/nouislider.min.js

# You can comment or uncomment following lines as needed (if app does not use chartjs then comment it).
https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.js

# You can comment or uncomment following lines as needed
#https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.3.8/js/lightgallery.js
#https://cdnjs.cloudflare.com/ajax/libs/lg-thumbnail/1.0.2/lg-thumbnail.js
#https://cdnjs.cloudflare.com/ajax/libs/lg-zoom/1.0.4/lg-zoom.js

#Trillo framework
https://www.trillo.io/dist/js/trillo-core.js
https://www.trillo.io/dist/js/trillo-view.js
https://www.trillo.io/dist/js/trillo-common.js

A Sample listing of application specific JS files

https://maps.googleapis.com/maps/api/js?key=<***add google API key>&libraries=places
shared/static/js/shared_ns.js
shared/static/js/sharedC.js
shared/static/js/appC.js
static/js/quote_ns.js
static/js/QuoteBaseFormC.js