Hype javascript size: When full.min.js is used instead of thin.min.js

Hi there

I am curious why the javascript file almost doubled in size. This is a problem when creating banners especially when the host e.g. Adwords does not support third party.

Compared to a previous version you exported? Or compared to something else?

Adwords (in my last check) did allow you to use the official CDN: https://tumult.com/hype/documentation/#slice-export-options

For Hype 4.0.1, HYPE-654.thin.min.js is 53.0 KB and HYPE-654.full.min.js is 90.6 KB. The “full” file is always used if the browser is detected to be IE 6-9, or if any of these document features are used:

  • Physics
  • Vector Shapes
  • Motion Paths
  • Audio
  • Page Turn Scene Transition
  • Swap Scene Trnasition
  • There is a On Drag > Control Element Position action in a scene with Flexible Layout

In Hype 3.x, Physics was the only condition that would trigger using the full runtime, but this list was expanded to keep the size for the thin runtime down. Regardless, the thin and full runtimes are both smaller in 4.0.1 (down from 55.6 KB for thin and 94.1 KB for full).

1 Like

Please elaborate on this? Not sure what your referring to with this exactly. Regards

I’ve edited to be more specific with “On Drag > Control Element Position” as in:

The reason this is in the full runtime is that it basically needs all the flexible layout code, but in reverse, to calculate the proper position while dragging. As this is a limited case and a lot of code, it made sense to not include for everyone.

1 Like