Skip to main content
Known Participant
Mar 19, 2025 4:26 PM UTC
Answered

A lighter createjs.min.js file ?

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

 

    Mario_CR
    Mario_CRCorrect answer
    Community Expert
    Mar 19, 2025 7:37 PM UTC

    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>

    2 replies

    Mario_CR
    Community Expert
    Mario_CRCommunity ExpertCorrect answer
    Community Expert
    Mar 19, 2025 7:37 PM UTC

    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>

    Translate
    Known Participant
    Mar 21, 2025 8:59 AM UTC

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

    Translate