Multiple Spotify Oneboxes causing performance issues

There’s an issue that many users on the Drowned in Sound community have encountered where topics which contain a large number of Spotify links are rendering the topic unusable to them.

It’s been discussed there over the last few days, with a proposed solution to edit the CSS to minimise the maximum height for a Spotify Onebox (they don’t want to disable Onebox generation for the domain completely, for aesthetic reasons) and I thought I’d mention it here to see if you have any other thoughts or ideas on a solution.

I have not encountered the problem personally, so unfortunately cannot give more specifics than what has been posted above. It didn’t used to happen when the Spotify Oneboxes were more basic, but seems to have been triggered since they became extra.

1 Like

Thanks for posting this

For clarity, I’ve temporarily blocked the domain from OneBox to try to prevent people having the issue

1 Like

Sadly no suggestions on this, so I’ll share what Drowned in Sound did in case any other forums encounter the same issue.

The following was added to the CSS:

iframe[src*="spotify.com"] {
  max-height: 150px;
  height:80px;
}

Which results in the embeds looking like this:

Those who faced the performance problems before have stopped complaining, so it seems that this fix was good enough to resolve things.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.