@howardc93 I tried lossy compression on the original image at https://compressor.io/compress The compressed image size is 187 KB and the image looks almost similar to my eye. May be that would be quick fix.
Well, in practice i think including the script via a <script> tag generally does the same thing (so you can call moment() at any point afterward). So probably require('moment') by itself would be equivalent. If you think you can improve it, please submit a pull request!