Skip to content
Snippets Groups Projects
user avatar
Hugo Lefeuvre authored
Currently messages are appended one by one to the DOM. This is very
inefficient in the case where conversations have a reasonable size.
Since we're going to implement lazy loading in a further commit it
is a good idea to load everything at once in the DOM.

- During initial load: Generate #messages and THEN load it in the DOM
- Fix scrolling issues using onload callback after images get loaded
- Remove useless exec_keeping_scroll_position calls
- Fix padding issue at the bottom. This is a WebKit bug so we use a
  workaround: dynamically add a small padding to the last element in
  the chatview.

This commit is the first step towards lazy loading in the chatview.

Change-Id: I329a11615b846ab0b198af38f529ed0de8a3ac18
Gitlab: #825
Gitlab: #834
Reviewed-by: default avatarSebastien Blin <sebastien.blin@savoirfairelinux.com>
0babe2b4
History
Name Last commit Last update