5360 posts The Dude Abides
  • Located in United States
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+9 more
CodingJack says

I’ve been working on a project recently that loads in SoundCloud songs using the provided iframe code you get when you click the “share” button. This was working great until I upgraded to the latest Firefox.

When you load a SoundCloud iframe that has “showartwork” set to “true” as one of the url parameters, SoundCloud will do a 3D flip of the avatar when CSS3 3D Transforms are detected. Firefox 10 added CSS3 3D transform support but unfortunately this avatar flip crashes the browser every time. I’ve confirmed this on two different computers, one running Windows 7 and the other running Windows Vista (FF plugins and addons were disabled to make sure there were no conflicts when testing).

In case authors here have blogs that might be embedding SoundCloud music I thought I’d share this info here. If you want to avoid crashing your visitor’s browser when they visit your website, instead of removing the artwork/avatar completely, you can use this bit of code I wrote:

http://pastie.org/3332480

This will just disable artwork when Firefox 10 is detected and show it for all other browsers. I made a post about the bug over on the SoundCloud API Google group so hopefully they’ll fix it soon.

Cheers,

-Jack

1134 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Located in Switzerland
+8 more
SonicCube says

Thank you Jack ! I will check this out later today ;)

433 posts
  • Has been part of the Envato Community for over 3 years
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 50+ items on Envato Market
+4 more
thesecession says

Awesome Jack, thanks so much!

by
by
by
by
by
by