-
- Downloads
[FIX] website: refactore parallax snippet (perf / browser compatibility)
* Do not read multiple DOM data on each scroll. Simply read this when necessary (edition / initialization). * Throttle scroll event and debounce resize events (-> performance in edition and navigation improved). * Do not save useless data in the DOM. * Have the parallax state consistent if the page undergo other changes * Simplify DOM structure and LESS - Allow to better see how to place snippets inside the area - Before this commit, default parallax had different height on chrome and firefox
Showing
- addons/website/static/src/js/website.snippets.animation.js 25 additions, 28 deletionsaddons/website/static/src/js/website.snippets.animation.js
- addons/website/static/src/js/website.snippets.editor.js 18 additions, 20 deletionsaddons/website/static/src/js/website.snippets.editor.js
- addons/website/static/src/less/website.edit_mode.less 10 additions, 0 deletionsaddons/website/static/src/less/website.edit_mode.less
- addons/website/static/src/less/website.snippets.less 21 additions, 9 deletionsaddons/website/static/src/less/website.snippets.less
- addons/website/views/snippets.xml 4 additions, 7 deletionsaddons/website/views/snippets.xml
Loading
Please register or sign in to comment