Closed (duplicate)
Project:
Image Widget Crop
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Feb 2016 at 01:15 UTC
Updated:
27 Feb 2017 at 06:49 UTC
Jump to comment: Most recent
Comments
Comment #2
slashrsm commentedThis indeed sounds like a very good frontend performance improvement.
Comment #3
woprrr commentedI think this idea is an very good idea !!! this issue sound very good and goes in the direction of #2660788 and improve a lot the frontend performance.
Comment #4
woprrr commentedComment #5
pivica commentedOh just figure it out that Drupal core JS already have debounce implementation which we should use for this, check core/misc/debounce.js, method Drupal.debounce().
Comment #6
woprrr commented@pivica you have a small time to view it or take you directive to advance that subject ?
Comment #7
pivica commentedyes and if not i will make a time ;)
i will try today evening to start with this and other one - de-bouncing related.
Comment #8
pivica commentedOh damn 7 months already passed... where???
@woprrr check core/misc/debounce.js - this is the library we should use. There are many examples in Drupal core how to use it, for example core/modules/outside_in/js/offcanvas.js
For example something like this we need. Instead of
Do something like this
This basically says when window resize event is happening fire croppingResize function on each 250ms while resize events is going on.
Comment #9
markhalliwellThis was fixed by this related issue.