title: Swift 2 - Prevent stuck of loading big gif file
body: <p>I have GIF File which is 2MB but when I use celluar and my high speed is over I have 15kb/s and I have to wait certain amount of time to continue using the app..</p>
  
  <pre><code>    override func viewWillAppear(animated: Bool) {
          super.viewWillAppear(animated)
          getGif()
  
  }
  
  func getGif(){
      dispatch_async(dispatch_get_main_queue(), {
          do{
              if let json = try NSJSONSerialization.JSONObjectWithData(NSData(contentsOfURL: NSURL(string: "http://google.bg/gif.php")!)!, options: .MutableContainers) as? NSArray{
                  self.gifUrl = json[0]["url"] as! String
                  self.theGif.image = UIImage.gifWithURL(self.gifUrl)
              }
          }catch{}
      })
  }
  </code></pre>
  
  <p>dispatch doesn't work...</p>
  
  <p>How to continue using the app while the image is loading ?</p>