Experimental ‘lazy_loaded_categories’ feature enabled on Meta

The category is also not always loaded for the “Your topic is similar to…” suggestions

1 Like

Seems the category selector does have problems with lazy loaded categories when the tag selector is used as well. For example when you open Topics tagged official the appearance depends on whether you have added plugin and extras to your sidebar.
When you have added both everything works fine

When you remove extras from the sidebar the subcategory selector is missing

And when you also remove plugin from the sidebar the category dropdown does not show the selected category anymore (and the category banner doesn’t show the category)

When you click ‘Hot’ or ‘Top’ from there, Discourse disregards the category filter. For instance, instead of transitioning from ‘Latest’ at https://meta.discourse.org/tags/c/plugin/22/official/l/latest to ‘Top’ at https://meta.discourse.org/tags/c/plugin/22/official/l/top, you are redirected to https://meta.discourse.org/tag/official/l/top.

1 Like

I noticed that “Navigate to first post after topics are read” does not always work when the category is not added to the sidebar. So I think it is because of lazy loaded categories.

  1. Remove Contributing from your sidebar
  2. Read Contributing to Discourse development so you should be taken to the top at your next visit. (I would pin it if it’s unpinned to better find it later)
  3. Open Contributing to Discourse
  4. Reload
  5. Use the link to Contributing below the title
  6. Open Contributing to Discourse Development

Then you see the last post instead of the first

It works as expected when Contributing is added to the categories section of the sidebar

When the desktop category page style is set to “Subcategories with Featured Topics” with lazy loading, subcategories aren’t separated and displayed. This makes the style effectively the same as “Categories with Featured Topics.”

I can imagine that this is the intended result, but wanted to check first. If it is, some additional description or warning might be needed.

Without Lazy Load:

With Lazy Load: