More info in https://github.com/plotly/plotly.js/pull/240 and specifically in https://github.com/plotly/plotly.js/pull/240#issuecomment-180620592