# Size of slplayer.js

**URL:** <https://talk.atomisystems.com/t/size-of-slplayer-js/7333>\
**Category:** Support Questions\
**Created:** [March 27, 2023, 9:31am UTC](https://talk.atomisystems.com/t/size-of-slplayer-js/7333 "2023-03-27T09:31:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_Trysberg](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/erik_trysberg/32/4445_2.png) [@Erik\_Trysberg](https://talk.atomisystems.com/u/Erik_Trysberg)\
**Post date:** [March 27, 2023, 9:31am UTC](https://talk.atomisystems.com/t/size-of-slplayer-js/7333/1 "2023-03-27T09:31:59Z")

</div>

Problem: Exported slplayer.js file are very large

Saola Animate version: 3.1.2

OS: Windows 10

Notes:  
When I export a test file (980x240px) to an HTML5 banner, the slplayer.js file becomes very large (177kb). It should be noted that I have not added any animations - its only a static scene with seven images in it. The resources (images) weigh a total of 109kb. When exported it results in a folder that weighs a total of 309kb - **which is far too large for an HTML5 banner**.

Is there any way to compress the slplayer.js file, or other alternatives to reduce its size?

---

<div class="post-metadata">

**Author:** ![ToanLS](https://talk.atomisystems.com/letter_avatar_proxy/v4/letter/t/46a35a/32.png) [@ToanLS](https://talk.atomisystems.com/u/ToanLS)\
**Post date:** [March 29, 2023, 6:25am UTC](https://talk.atomisystems.com/t/size-of-slplayer-js/7333/2 "2023-03-29T06:25:07Z")

</div>

Hi Erik,

The slplayer.js file is large because it supports all features of Saola Animate, not just the features used in a particular project.  
If your problem is the file size limitation of your ads platform, please check if they count the gzip size and if they exclude CDN-hosted libs?  
To use the CDN-hosted slplayer.js file, please select **Edit HTML** in **Document** pane, and replace `{$playerURL}` in the **HTML Output** editor with the following slplayer.js file (for Saola Animate 3.1.2):  
[https://cdn.atomisystems.com/samples/saola-animate/slplayers/v11/slplayer.js](https://cdn.atomisystems.com/samples/saola-animate/slplayers/v11/slplayer.js)

FYI, this is the recommendation about ads file size (gzip compressed) from IAB: [https://www.iab.com/wp-content/uploads/2019/04/IABNewAdPortfolio\_LW\_FixedSizeSpec.pdf](https://www.iab.com/wp-content/uploads/2019/04/IABNewAdPortfolio_LW_FixedSizeSpec.pdf)

Regards

---

<div class="post-metadata">

**Author:** ![Erik\_Trysberg](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/erik_trysberg/32/4445_2.png) [@Erik\_Trysberg](https://talk.atomisystems.com/u/Erik_Trysberg)\
**Post date:** [March 30, 2023, 8:25am UTC](https://talk.atomisystems.com/t/size-of-slplayer-js/7333/3 "2023-03-30T08:25:02Z")

</div>

Unfortunately, it won’t work as the platform I deliver banners to requires the js-file to be included in the zip-file and not via CDN.

Is there any plan to make the js file more adaptable to the type of content being created?

For my part, I’m trying to find a user-friendly Windows program to create banners in - and where Saola checks all the points so far - **except when exporting**.

---

<div class="post-metadata">

**Author:** ![ToanLS](https://talk.atomisystems.com/letter_avatar_proxy/v4/letter/t/46a35a/32.png) [@ToanLS](https://talk.atomisystems.com/u/ToanLS)\
**Post date:** [March 30, 2023, 8:47am UTC](https://talk.atomisystems.com/t/size-of-slplayer-js/7333/4 "2023-03-30T08:47:42Z")

</div>

Hi Erik.

We’ll consider and check if it’s feasible to make the player js file adaptable to the content, but I can’t make any promises about this feature now.

Regards
