Use rel="noopener" for your hyperlinks with target="_blank"

July, 2020

Using  `target="_blank"` can be dangerous and affect performance since `window.opener` will have reference to previous window.

 

window.opener returns a reference to the window that opened the window using `open()`.

( if the window A opens a window B, B.opener returns A)

 

To prevent this (set window.opener to null ) use ` rel="noopener" ` for older browser support use  ` rel="noreferrer`

 

Good reads:

https://mathiasbynens.github.io/rel-noopener/

https://css-tricks.com/use-target_blank/