Does a lot of links to posts slow down a WP site significantly?

[ad_1]

Hi, I inherited a site that has an accordion menu in the sidebar that basically links to every single post ever made on the site. 2000+ posts. The site uses the “**List category posts”** plugin and shortcodes to group the post titles in the accordion under their various categories. There are maybe 25 categories. The site uses Elementor Pro.

[ad_2]
2 Comments
  1. The HTML elements by default have the smallest impact on the performance of a webpage, but 2000 items seem a bit excessive.

    It’s just textual document, so it shouldn’t take much space, and doesn’t require long loading time.

    However, to make such an odd approach fool proof for the future, consider using an expand button/icon for each category/tag/taxonomy item, that appends all links under that term to the DOM.

  2. Lots of static links is pretty lightweight. Querying a database to get all your categories, and all your posts in the categories is probably the biggest drag with a decent dataset. Depending on how the plugin handles the queries to the database that could be a pretty major pain point that is worth replacing with a performant sql query that only returns the needed data, and you could likely improve elementors bloated html output a lot too.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer