Is there a performance difference in using $(window).width() and window.innerWidth?
If I'm already using jQuery in my app, but want to improve performance as much as I can. Does it improve performance any to use vanilla JS instead of jQuery (for example) for getting window width in some places of my code?
Aucun commentaire:
Enregistrer un commentaire