Skip to main content
Known Participant
March 19, 2025
Answered

A lighter createjs.min.js file ?

  • March 19, 2025
  • 1 reply
  • 203 views

Hello

 

Is there a way to get a lighter createjs.min.js file for ma banners ? That JS is 237ko if I include it in my zip file...

Thanks

 

    Correct answer Mario_CR

    Use a Google hosted link,  no need to include the library in your package.

     

    Go to Publish Settings and check the Hosted Libraries option:

     

    Once published, open the HTML5 file and replace the default create.js host:

    <script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>

     

    With the Google hosted one to pass validation:

    <script src="https://s0.2mdn.net/ads/studio/cached_libs/createjs_2019.11.15_min.js"></script>

    1 reply

    Mario_CR
    Community Expert
    Mario_CRCommunity ExpertCorrect answer
    Community Expert
    March 19, 2025

    Use a Google hosted link,  no need to include the library in your package.

     

    Go to Publish Settings and check the Hosted Libraries option:

     

    Once published, open the HTML5 file and replace the default create.js host:

    <script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>

     

    With the Google hosted one to pass validation:

    <script src="https://s0.2mdn.net/ads/studio/cached_libs/createjs_2019.11.15_min.js"></script>

    Known Participant
    March 21, 2025

    Thanks, I used to do that, but the Google hosted is the solution to pass validation, thanks 🙂