Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Enhancement: Add Pagination to Blog Page #1276

Closed
Karan-Palan opened this issue Jan 10, 2025 · 4 comments
Closed

✨ Enhancement: Add Pagination to Blog Page #1276

Karan-Palan opened this issue Jan 10, 2025 · 4 comments
Labels
✨ Enhancement Indicates that the issue suggests an improvement or new feature. Status: Triage This is the initial status for an issue that requires triage.

Comments

@Karan-Palan
Copy link
Contributor

Karan-Palan commented Jan 10, 2025

Is your feature request related to a problem? Please describe

Currently, the blog page on the JSON Schema website displays all 40 blog posts at once. This can lead to performance issues and a poor user experience, especially as the number of blog posts increases over time. Users may find it difficult to navigate or find specific posts when the list becomes too long.

Describe the solution you'd like

Implement a pagination system to enhance usability and performance. Key features should include:

  1. Display a limited number of blog posts per page (e.g., 10 posts per page).
  2. Add pagination controls (e.g., "Previous", "Next", and page numbers) at the bottom of the page.
  3. Ensure the implementation is responsive and works seamlessly across all screen sizes.

Describe alternatives you've considered

  1. Load more posts as the user scrolls down the page. This can be implemented with a "Load More" button.
  2. Improve performance by only loading images for blog posts currently in view.

Additional context

This feature will improve the scalability of the blog section as more content is added over time.

Are you working on this?

I would love to work on this if approved. Thanks!

@Karan-Palan Karan-Palan added Status: Triage This is the initial status for an issue that requires triage. ✨ Enhancement Indicates that the issue suggests an improvement or new feature. labels Jan 10, 2025
@ConnectBhawna
Copy link

Hey @Karan-Palan if you are not working on this i would love to contribute into this :)

@Karan-Palan
Copy link
Contributor Author

Hey @ConnectBhawna, I'm just a contributor here. Please check Contributing and Triage process.
I have mentioned in the issue that I'd work on it and have made the relevant changes locally. I am currently waiting for the triage process before creating a PR. Thanks

@DhairyaMajmudar
Copy link
Member

Hi @Karan-Palan It will be good to have all the blogs in a single page in front of users, instead of hiding them in pagination. As many times it has been noticed that user hardly surf to third or fourth page.

@Karan-Palan
Copy link
Contributor Author

Karan-Palan commented Jan 19, 2025

@DhairyaMajmudar makes sense, what do you think about adding a load more button or something like that if not pagination. I thought as the number of blogs increase, users will have to scroll more and more, especially on mobile as it slows down the page loading due to alot of images

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Enhancement Indicates that the issue suggests an improvement or new feature. Status: Triage This is the initial status for an issue that requires triage.
Projects
None yet
Development

No branches or pull requests

3 participants