Click here to Skip to main content
15,886,823 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Bit of help needed.

I am working on application with 3 pages navigation and in one of the page is retrieves rss feed page via some source.
Loading rss feed page takes a while more than a usual (Navigating to other pages than this page),
so is it possible to improve this response time after I click hyperlink button to navigate to this rss feed page ???
if so please help !!

also to be noted is that I have used async OnLoaded event(Method) for this page to receive feeds using async-await ,with
SyndicationFeed feed = await Client.RetrieveFeedAsync(FeedUri);



!!!! help needed asap !!!

!! Windows 8 Application Programming !!
Posted

1 solution

If this is sitting waiting for the RSS feed to come back from the server there's nothing you can do to speed it up. You have to wait for the other server to build the RSS feed and send it to you. You have no control over that process.
 
Share this answer
 
Comments
Shubhanshu Singh 8-Sep-13 3:23am    
So basically its like - the page from which I am navigating to Rss feed page becomes bit unresponsive after user click hyperlink button and then UI become doesn't response to any other user touch or click until it navigates to feed page ,so nothing can't be done with this issue right ??
Dave Kreskowiak 8-Sep-13 9:29am    
Yes. The only thing you can do to improve the responsiveness to the UI while the page is still being downloaded is to move the operation getting the RSS feed to a background thread, which it appears you've already done. But, have you done it correctly?
Shubhanshu Singh 9-Sep-13 12:43pm    
Now what I did was ,in order to navigate to rss feed page quickly (so that user doesn't feel lack of flexibility),I used Dispatcher Timer and on timer tick event it fetches feed and and at the same time other info can be displayed on UI screen.
This is pretty much solution what I tried for now.
Dave Kreskowiak 9-Sep-13 13:13pm    
A timer?? That's a very strange way to do this. You just need a Task to load the RSS feed. Nothing more.
Shubhanshu Singh 9-Sep-13 14:35pm    
Actually ,there are other elements to be loaded other then just rss feed on same page so I used timer so that as soon as page is loaded timer start and rss feed is loaded using async - await
SyndicationFeed feed = await Client.RetrieveFeedAsync(FeedUri);
so before it is loaded other element which application will show before feed are loaded and feeds are retrieved by async operation.
I did this because my page doesn't respond to any input when feeds are fetched . - main issue is this!!

Is there any thing be done while feeds are fetched at the same time UI respond to any other user input ?????

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900