title: Third-party libraries in Google App Script
body: <p>I have a standalone script for Google Sheets. I use third-party libraries like Bootstrap, moment.js and a few others. I use modal dialog to show content.</p>
  
  <p>At the initial stage of development I was using CDN to get them from the net. However, before publishing the script I realized that it depends on the external resources and if there something has been changed it will stop working. </p>
  
  <p>I know that Google provides reliable source of <a href="https://developers.google.com/speed/libraries/" rel="nofollow noreferrer">Hosted Libraries</a> I use jQuery from it. However, the others I use are not present there. </p>
  
  <p>At this point I came up with approach to add the minified content into separate *.html files. For example</p>
  
  <pre><code> bootstrap.min.js.html -&gt; &lt;script type="text/javascript"&gt; MINIFIED BOOTSTRAP &lt;/script&gt;
  </code></pre>
  
  <p>Then include it to my main pages </p>
  
  <pre><code>&lt;?!= methodToInclude('bootstrap.min.js'); ?&gt;
  </code></pre>
  
  <p>It works, however the script significantly decreased in performance when the main page is loaded and it gives not good UX.</p>
  
  <p>Are there any other reliable approaches to include the third-party libraries in your script project?</p>