Yonatan's dev blog
  • Home
Subscribe
Tagged

javascript

A collection of 2 posts

javascript

Raiding memory leaks in the Pyramid of PrevObject

A while ago I found that interaction with a component in our site results in many detached dom elements. At first glance, it wasn't clear from the code what was causing it. After some research I realized that the detached dom elements are still referenced by prevObject- an internal property

  • Yonatan
Yonatan Aug 25, 2015 • 4 min read
javascript

Prototype's real world usage: optimizing memory usage

One of the first things you learn about Javascript when you start delving into the language is that it doesn't support classical inheritance, but rather prototypal inheritance. The topic of prototype-based inheritance is the subject of many online articles and interview questions. Usually examples used to explain it involve Employees

  • Yonatan
Yonatan Jan 12, 2014 • 4 min read
Yonatan's dev blog © 2023
Powered by Ghost