Hacker News new | past | comments | ask | show | jobs | submit login

Also surely you could just have:

  function readGIF(filename) {
    if (calcMemSizeNeeded(filename) > memoryFree()) {
      displayGifPlaceholder();
    }  
  }
eg just display an animated GIF if there's enough ram, and if not, display some placeholder.

I guess one of the other issues there though is websites that 'stream' animated gifs that never end. Still, you could just disable those for now.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: