samedi 17 février 2018

What pattern should i use to create a small javascript library?

How could i go about making a javascript library that does the following

  • makes ajax calls
  • manipulates history that is make use of the History API
  • manipulates html element and their attributes
  • fire on events
  • check if the document is ready

I know i can find all this functionality in other libraries like JQuery but this slows down the site extremely and just having these in my code is what i want. I am looking for what pattern to use and a basic skeleton to illustrate. PS i am not trying to reinvent the wheel but trying to slim it down to the size i require, if that makes sense

Aucun commentaire:

Enregistrer un commentaire