Hsins
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Blocksy] Custom Browser History Behavior of Infinity ScrollingHi @cteduard,
It’s a problem about user experience (UX). For example, assuming that there’re 30 posts/products per page.
- User visist the archive page, it shows the latest 30 posts (post 01-30). By scrolling down, the page will load another 30 posts (post 31-60). With the
pushState()function, browser will add thehttps://domain/page/2to history. - When user visit any page and then click “Go Back / Previous Page” button on browser, the browser will goto the
https://domain/page/2. However, that page will show posts 31-60 due to the layout template. Most users would be wondering why there’s no posts 01-30 now.
There’re many approaches to enhance the user experience:
- Switch to
replaceState()function, then the browser history would not change. By the browser cache mechanism, it will go back that position. - Use
sessionStorageto store the loaded data with AJAX. - Make
https://domain/page/2not only load preceding posts/products when scrolling down, but also the previous posts/products when scrolling up.
Hmm… All themes can be considered “developer-friendly” as long as the developer’s skills are sufficient. I surely understand that these issues can be handled through custom CSS, but the reason for suggesting this is because it’s still somewhat troublesome.
Additionally, not all users are developers, and being able to choose multiple fonts to implement font fallback functionality is likely a need for many users that I think:)
The version of WordPress I’m using is exact 6.6.1. I’ve tried that steps, and the
autoloadfield ofblocksy_ext_local_google_fonts_settingsoption is stillyes. Meanwhile, I’ve also tried to delete the existed fonts. The result is the same.Moreover, I found that the processes of deletion and downloading take more time than before.
- User visist the archive page, it shows the latest 30 posts (post 01-30). By scrolling down, the page will load another 30 posts (post 31-60). With the