WordPress.org

Making WordPress.org

Opened 4 years ago

Closed 21 months ago

#1166 closed defect (maybelater)

Theme directory search resets the load of new elements under certain circumstances

Reported by: bi0xid Owned by:
Milestone: Priority: low
Component: Theme Directory Keywords:
Cc:

Description

Interesting bug in the themes page of wordpress.org. If you make a search and then you go down, it loads more themes. But if you go to the end using the end key of the keyboard, or you hit the forward page key twice very quickly, it shows the end of the page with the footer and the first load of the page, getting rid of all the themes loaded when going down.

It's nothing important, just weird.

I made a small screen capture to show how it works.

I have tested it in Safari, Chrome and Firefox in MacOS 10.10.4 with the same result.

Change History (2)

#1 @frantorres
4 years ago

I have just tested it with Av Pag button and scrollbar, looks like it:
-Sometimes doesn't track Av Pag and scrollbar new offset on the page
-After press Av Pag the ajax call sometimes ask for page two instead of the next page. For example:
Normal call (random position ergo random page)
https://api.wordpress.org/themes/info/1.1/?callback=jQuery111309332990196999162_1438821359967&action=query_themes&request%5Bper_page%5D=24&request%5Blocale%5D=en_US&request%5Bfields%5D%5Bdescription%5D=true&request%5Bfields%5D%5Bsections%5D=false&request%5Bfields%5D%5Btested%5D=true&request%5Bfields%5D%5Brequires%5D=true&request%5Bfields%5D%5Bdownloaded%5D=true&request%5Bfields%5D%5Bdownloadlink%5D=true&request%5Bfields%5D%5Blast_updated%5D=true&request%5Bfields%5D%5Bhomepage%5D=true&request%5Bfields%5D%5Btheme_url%5D=true&request%5Bfields%5D%5Bparent%5D=true&request%5Bfields%5D%5Btags%5D=true&request%5Bfields%5D%5Brating%5D=true&request%5Bfields%5D%5Bratings%5D=true&request%5Bfields%5D%5Bnum_ratings%5D=true&request%5Bfields%5D%5Bextended_author%5D=true&request%5Bfields%5D%5Bphoton_screenshots%5D=true&request%5Bsearch%5D=minimalist&request%5Bpage%5D=4&_=1438821359977

Sometimes pressing Av Pag (loads page two)
https://api.wordpress.org/themes/info/1.1/?callback=jQuery111303614587322808802_1438821670378&action=query_themes&request%5Bper_page%5D=24&request%5Blocale%5D=en_US&request%5Bfields%5D%5Bdescription%5D=true&request%5Bfields%5D%5Bsections%5D=false&request%5Bfields%5D%5Btested%5D=true&request%5Bfields%5D%5Brequires%5D=true&request%5Bfields%5D%5Bdownloaded%5D=true&request%5Bfields%5D%5Bdownloadlink%5D=true&request%5Bfields%5D%5Blast_updated%5D=true&request%5Bfields%5D%5Bhomepage%5D=true&request%5Bfields%5D%5Btheme_url%5D=true&request%5Bfields%5D%5Bparent%5D=true&request%5Bfields%5D%5Btags%5D=true&request%5Bfields%5D%5Brating%5D=true&request%5Bfields%5D%5Bratings%5D=true&request%5Bfields%5D%5Bnum_ratings%5D=true&request%5Bfields%5D%5Bextended_author%5D=true&request%5Bfields%5D%5Bphoton_screenshots%5D=true&request%5Bsearch%5D=minimalist&request%5Bpage%5D=2&_=1438821670384

JS code is minified and hard to see, but looks related to https://wordpress.org/themes/wp-content/themes/pub/wporg-themes/js/theme.min.js?ver=6

Tested in Ubuntu 14.04, Chrome Beta 45.0.2454.15

Regards!

#2 @obenland
21 months ago

  • Resolution set to maybelater
  • Status changed from new to closed

Yes, the reload script doesn't really account for the end key. Given how it's not an a11y concern (tabbing works fine) and the presumed light usage of that to advance through the directory, I'd say it's not a high priority to fix. Let's do account for that during the next iteration on the directory.

Note: See TracTickets for help on using tickets.