Reputation: 199
I'm developing a Chat on nodejs. Like any chat , users sends links all the time. The situation is whenever a user click on any link (anchor tag with '_blank' target) , Chrome open a new tab (Example: a youtube video) that seems to link both , main and new tab , in memory looking like this :
It seems like a normal behavior but when the user close that new tab , main tab holds memory from newer tab , reducing just a few Ks.
Garbage Collector doesn't run always and supposing that an user open 30 links , memory can grow significantly.
Anyone know how to create an anchor tag that can avoid this behavior? It's a Chrome problem ? My version is 33.0
An interesting behavior is when the user does a right-click and open a new tab from the menu. Chrome creates a new tab separately. That's the behavior I want to replicate.
Cheers!
Upvotes: 9
Views: 624
Reputation: 199
I found a solution to this, setting rel=noreferrer to the anchor tag. Now it opens any number of tabs separately without overloading memory on main tab.
Upvotes: 5