mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 14:19:49 +08:00
81b0420614
When `lazy_load_categories` is enabled, the categories are no longer preloaded in the `Site` object, but instead they are being requested on a need basis. The categories page still loaded all categories at once, which was not ideal for sites with many categories because ti would take a lot of time to build and parse the response. This commit adds pagination to the categories page using the LoadMore helper. As the user scrolls through the categories page, more categories are requested from the server and appended to the page. <!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. --> |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |