     }
     
     func parserDidEndDocument(parser: NSXMLParser) {
-        self.tableView.reloadData()
+        
+        let priority = DISPATCH_QUEUE_PRIORITY_DEFAULT
+        dispatch_async(dispatch_get_global_queue(priority, 0)) {
+            
+            dispatch_async(dispatch_get_main_queue()) {
+                
+                self.tableView.reloadData()
+                
+                self.stopLoading()
+                
+            }
+            
+        }
+        
+        
+//        self.tableView.reloadData()
     }
 
     // MARK: - Segues

            self.xmlParser.delegate = self
            self.xmlParser.parse()
        }
    }
    
    // MARK: - XMLParser
    
    var entryTitle: String!
    var entryLink: String!

        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        startLoading()
        
        // parse RSS
        getRSS()
        
    }

