# Regarding Manifest file

**URL:** <https://forum.defold.com/t/regarding-manifest-file/27740>\
**Category:** Questions\
**Created:** [August 20, 2018, 12:13pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740 "2018-08-20T12:13:04Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynchamika](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/l/aeb1de/32.png) [@lynchamika](https://forum.defold.com/u/lynchamika)\
**Post date:** [August 20, 2018, 12:13pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/1 "2018-08-20T12:13:04Z")

</div>

Hi all,  
My html build size is about 9mb. I wanted to decrease it. So I used the manifest file and try to remove unused components from the project. But it doesn’t have significant impact on the build size. But the problem is final build size has increased a bit. this is a part of the manifest file.

js-web:  
context:  
excludeLibs: [“record”,“vpx”,“profilerext”,“engine”]  
excludeSymbols: [“ProfilerExt”,“FacebookExt”]  
libs: [“engine\_release”,“record\_null”]  
Am I doing this in the wrong way ?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [August 20, 2018, 1:29pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/2 "2018-08-20T13:29:48Z")

</div>

> My html build size is about 9mb

The default engine is ~5mb for HTML5. Do you count the content in your 9mb?

You could also try to remove the physics engines if you currently don’t use them?  
Try the helper app to create your manifest file: [Manifestation - Create App Manifest files with ease](https://forum.defold.com/t/manifestation-create-app-manifest-files-with-ease/27460)

Also, for textures on HTML5 you might want to look into WebP compression and [texture profiles](https://www.defold.com/manuals/texture-profiles/)  
That should help a lot too.

---

<div class="post-metadata">

**Author:** ![lynchamika](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/l/aeb1de/32.png) [@lynchamika](https://forum.defold.com/u/lynchamika)\
**Post date:** [August 20, 2018, 3:36pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/3 "2018-08-20T15:36:36Z")

</div>

Yeah I have few sprites which cause the larger build size. But I wanted to remove the unwanted components using the manifest file. but it doesnt have effect on the build size.  
I created my manifest file using the above url.(cant remove the physic engine as I use it)  
I will look into the texture compression . Thank you very much 🙂

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [August 20, 2018, 4:15pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/4 "2018-08-20T16:15:01Z")

</div>

On the other platforms, the vpx library is fairly big. But on HTML5, it doesn’t exist so you won’t save any memory on that.

To be clear, don’t you get _any_ size change at all?  
Have you specified the manifest in the `game.project`?

> [@Native Extensions](https://forum.defold.com/t/native-extensions/4946/133):
>
> Of course! I got so excited about the release I had forgot to prepare my notes… ^^ Customizing the engine build Apart from specifying your own new extensions, you can also enable/disable libraries via the “App Manifest” This is a feature that has very little documentation yet (none?). The basic idea is that it should work very closely to how the extension manifest works (and also our master config for the server). And although this config design isn’t fully nailed down, we think it’s benef…

In the future, we’ll make it possible to exclude either 2d or 3d physics (now they’re lumped together)

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [August 20, 2018, 4:59pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/5 "2018-08-20T16:59:39Z")

</div>

Do you have webp texture compression enabled?

---

<div class="post-metadata">

**Author:** ![lynchamika](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/l/aeb1de/32.png) [@lynchamika](https://forum.defold.com/u/lynchamika)\
**Post date:** [August 20, 2018, 5:24pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/6 "2018-08-20T17:24:43Z")

</div>

Yeah build size doesnt get reduces. It only get increased a little bit. Also I have specified it in the game.project file. 🙂

---

<div class="post-metadata">

**Author:** ![lynchamika](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/l/aeb1de/32.png) [@lynchamika](https://forum.defold.com/u/lynchamika)\
**Post date:** [August 20, 2018, 5:26pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/7 "2018-08-20T17:26:04Z")

</div>

No , but I have enabled the texture compression on preferences settings. I will check on webp compression. Thank you 🙂

---

<div class="post-metadata">

**Author:** ![lynchamika](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/l/aeb1de/32.png) [@lynchamika](https://forum.defold.com/u/lynchamika)\
**Post date:** [August 20, 2018, 6:49pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/8 "2018-08-20T18:49:49Z")

</div>

using webp texture compression I manged to reduce about 1.5mb. Thank you @Mathias_Westerdahl and  
@Pkeod for your help :).

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 20, 2018, 7:22pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/9 "2018-08-20T19:22:36Z")

</div>

Make sure to generate a build report to get a better understanding of where those megabytes go. Perhaps you have large sound files? It is typically either sounds, images or fonts that take up a lot of space on disk.

---

<div class="post-metadata">

**Author:** ![lynchamika](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/l/aeb1de/32.png) [@lynchamika](https://forum.defold.com/u/lynchamika)\
**Post date:** [August 21, 2018, 5:07am UTC](https://forum.defold.com/t/regarding-manifest-file/27740/10 "2018-08-21T05:07:23Z")

</div>

I generated the build support and my assets are about 1.5mb. also the final build size is about 6.5 mb.(I removed few assets also). Then extra 5mb is from the engine.I think we cant do anything about it.can we?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 21, 2018, 6:19am UTC](https://forum.defold.com/t/regarding-manifest-file/27740/11 "2018-08-21T06:19:53Z")

</div>

Well, the engine can be reduced in size through stripping of the parts you don’t need. But you know that already. Are you bundling a release build? Also remember that gzip compression is likely to be applied for html5 when downloading.

Finally, you could split the download and exclude non vital starter content and download the rest using liveupdate.

---

<div class="post-metadata">

**Author:** ![Oleg\_The\_Evangelist](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/oleg_the_evangelist/32/1596_2.png) [@Oleg\_The\_Evangelist](https://forum.defold.com/u/Oleg_The_Evangelist)\
**Post date:** [August 21, 2018, 8:35am UTC](https://forum.defold.com/t/regarding-manifest-file/27740/12 "2018-08-21T08:35:11Z")

</div>

I think @AGulev managed to get his test game to ±700K gzipped on HTML5 back in the days: [https://potatojam.com/games/cks/](https://potatojam.com/games/cks/)

I wonder if he tried to make a new build recently =]

---

<div class="post-metadata">

**Author:** ![lynchamika](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/l/aeb1de/32.png) [@lynchamika](https://forum.defold.com/u/lynchamika)\
**Post date:** [August 21, 2018, 9:28am UTC](https://forum.defold.com/t/regarding-manifest-file/27740/13 "2018-08-21T09:28:56Z")

</div>

@britzl and @Oleg_The_Evangelist thanks.I will look into gzip compression.

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [August 21, 2018, 10:39am UTC](https://forum.defold.com/t/regarding-manifest-file/27740/14 "2018-08-21T10:39:25Z")

</div>

> [@Oleg\_The\_Evangelist](#):
>
> I think @AGulev managed to get his test game to ±700K gzipped on HTML5 back in the days: [https://potatojam.com/games/cks/](https://potatojam.com/games/cks/)
> 
> I wonder if he tried to make a new build recently =]

I just made an update of the game (by above link) up to the latest version of Defold:  
gzipped whole game size is 1.3 Mb  
gzipped engine only (js file) 924 Kb

---

<div class="post-metadata">

**Author:** ![lynchamika](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/l/aeb1de/32.png) [@lynchamika](https://forum.defold.com/u/lynchamika)\
**Post date:** [August 21, 2018, 10:45am UTC](https://forum.defold.com/t/regarding-manifest-file/27740/15 "2018-08-21T10:45:31Z")

</div>

@AGulev well if that’s the case. it should be really interesting. Thanks for letting me know.

---

<div class="post-metadata">

**Author:** ![Oleg\_The\_Evangelist](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/oleg_the_evangelist/32/1596_2.png) [@Oleg\_The\_Evangelist](https://forum.defold.com/u/Oleg_The_Evangelist)\
**Post date:** [August 21, 2018, 12:08pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/16 "2018-08-21T12:08:54Z")

</div>

um, so did your game footprint grow with the newer version of defold then?

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [August 21, 2018, 12:34pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/17 "2018-08-21T12:34:30Z")

</div>

Yea, just a little.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [August 21, 2018, 12:52pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/18 "2018-08-21T12:52:51Z")

</div>

@Oleg_The_Evangelist The smallest (gzipped) engine I’ve confirmed with was 872kb.

---

<div class="post-metadata">

**Author:** ![Oleg\_The\_Evangelist](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/oleg_the_evangelist/32/1596_2.png) [@Oleg\_The\_Evangelist](https://forum.defold.com/u/Oleg_The_Evangelist)\
**Post date:** [August 21, 2018, 1:07pm UTC](https://forum.defold.com/t/regarding-manifest-file/27740/19 "2018-08-21T13:07:29Z")

</div>

thanks! I remembered the wrong number then. 872kb it is then!
