Monster 1.31 released

volker_schukai

Volker Schukai

Posted on February 7, 2022

Monster 1.31 released

Today we released the latest edition of our Monster project. Monster is a collection of javascript classes that we need for daily work in our web projects.

Besides small helper functions and classes, it also provides useful functions to enable reactive programming.

Monster is available via jsdelivr and npm.

Only the highlights are described here. The full functionality can be found in the documentation.

document and window ready

With jQuery there was always a simple call to check if the document was already loaded.

$( document ).ready(function() {
  // Handler for .ready() called.
});
Enter fullscreen mode Exit fullscreen mode

But with vanilla you always have to listen for events or query the document ready status. So we have that in our lib too there are two new promises.

domReady.then(()=>{
    // do something
}).catch(e => done(e));
Enter fullscreen mode Exit fullscreen mode

and ...

windowReady.then(()=>{
    // do something
}).catch(e => done(e));
Enter fullscreen mode Exit fullscreen mode

hope you enjoy it!

References

💖 💪 🙅 🚩
volker_schukai
Volker Schukai

Posted on February 7, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

JavaScript Basics and Cheat Sheet
javascript JavaScript Basics and Cheat Sheet

April 21, 2022

Monster 1.31 released
javascript Monster 1.31 released

February 7, 2022

Monster 1.30 released
javascript Monster 1.30 released

February 5, 2022

Monster 1.29 released
javascript Monster 1.29 released

December 29, 2021