Is your plugin lightweight and fast?

We only load the necessary scripts when there are interactions on the page.


More specifically, WP Interactions has one JavaScript file that contains our main interaction engine, and it also utilizes multiple inlined scripts for the configuration of the different interaction types and action types which are loaded once when they are used.


Here are the file sizes (gzipped):

  • Main WP Interactions script: 17.7kb~
  • Inlined once per interaction/trigger and action type used: average of 500 bytes~

It's also important to note that the Main WP Interaction script can be cached by the browser since it doesn't change throughout your site.


So for example if you are using 2 click interactions that both use the opacity and update post meta actions, then the total added files loaded in your site would be:

  1. 1x Main WP Interactions script: 17.7kb
  2. 1x Inlined click interaction script: 500bytes
  3. 1x Inlined opacity action script: 500bytes
  4. 1x Inlined update post meta action script: 500bytes

For a total of 19.2kb gzipped.