DEV Community

Cover image for Announcing Anymod v2 πŸŽ‰πŸŽ‰πŸŽ‰
Tyler Warnock
Tyler Warnock

Posted on • Updated on • Originally published at guide.anymod.com

Announcing Anymod v2 πŸŽ‰πŸŽ‰πŸŽ‰

We've released Anymod v2!

Thousands of devs are now using Anymod's online editor to build modular features and add them to any website.

So what's new in v2?

Mods load 5-10x faster ⚑

We've completely reworked how mods are delivered to web pages in v2, and the end result is a significantly faster load time.

For a typical page:

  • v1: mod data loads in 100-200ms
  • v2: mod data loads in 10-20ms

The v2 script makes heavy use of caching, and the script sends a request for cached data immediately, before the DOM is fully loaded. Mods are then rendered as soon as the data is received and the DOM is ready.

Mods are also delivered as a JS file instead of through an AJAX request, which eliminates multiple round trip DNS and OPTIONS requests, saving even more time.

Use any JS framework (or none) πŸ’»

Removed dependency on Vue

For v2, we've removed the dependency on Vue.js. Now you can use plain JavaScript or any framework you want when building mods (including Vue, React, Angular, and jQuery).

This also means the underlying Anymod script is smaller & faster to load (was 41kB, now 11kB).

HTML pre-compilation with Handlebars

Now you can add content directly to your mod HTML by using Handlebars syntax, so you don't need to rely on a framework to get editable content in your HTML.

<!-- Old syntax (based on Vue.js) -->
<span v-text="message"></span>

<!-- New syntax (handlebars) -->
{{ message }}
Enter fullscreen mode Exit fullscreen mode

Over 100 new mods

Finally, we've added & categorized over 100 new, ready-to-use mods in the library. Quickly add:

See the most popular mods in the library.

--

The goal at Anymod is to help developers & teams build the web. We think v2 will make your workflow faster & simpler, and we hope you enjoy!

Top comments (3)

Collapse
 
ben profile image
Ben Halpern

Congrats!

Collapse
 
tyrw profile image
Tyler Warnock

Thanks! It's been a journey so far, and starting to get interesting!

Collapse
 
tyrw profile image
Tyler Warnock

Link to the full announcement here! guide.anymod.com/guide/introducing...