discourse/plugins/chat
Joffrey JAFFEUX bbb8595107
PERF: defer loading channels (#26155)
Prior to this change we would pre-load all the user channels which making initial page load slower. This change will make them be loaded right after initial load. In the past this was not possible as the channels would have to be loaded on each page transition. However since about a year, we made the channels to be cached on the frontend and no other request will be needed.

I have decided for now to not show a loading state in the sidebar as I think it would be noise, but we can reconsider this later.

Note given we don't have the channels loaded at first certain things where harder to accomplish. The biggest UX change of this commit is that we removed all the complex logic of computing the best channel to display when you load /chat. We will now store the id of the last channel you visited and will use this id to decide which channel to show.
2024-03-18 08:35:07 +01:00
..
app PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
assets PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
config Update translations (#26136) 2024-03-12 15:40:11 +01:00
db FEATURE: allows to force a thread (#25987) 2024-03-06 12:03:42 +01:00
lib PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
public
spec PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
test/javascripts PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
plugin.rb PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
README.md DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00

This plugin is still in active development and may change frequently

Documentation

The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.

For user documentation, see Discourse Chat.

For developer documentation, see Discourse Documentation.