[pull request] Timeout before loading selected feed

Development-related discussion, including bundled plugins
User avatar
LifeWOutMilk
Bear Rating Disaster
Bear Rating Disaster
Posts: 52
Joined: 02 Apr 2013, 21:57

[pull request] Timeout before loading selected feed

Postby LifeWOutMilk » 12 Jun 2013, 09:02

Preface: I'm a complete noob when it comes to javascript

Edit 06/14/2013: Yep, I am, it was a broken patch.

Currently, if you are navigating up/down the feed list, the client is sending a request on each keypress or click to load the selected feed. If I want to just move down three feeds, then it loads the two feeds in between my start and destination and this this can cause the final feed load to take longer(depending on the server of course). I added a timeout to the viewfeed() function that simply waits 250ms before loading the feed in case the user clicks on a different feed or navigates to a different one using the keyboard.

[strike]https://github.com/gothfox/Tiny-Tiny-RSS/pull/219[/strike]

Edit: the choice of 250ms was pretty arbitrary, and it "feels" okay here.

Return to “Development”

Who is online

Users browsing this forum: No registered users and 2 guests