Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Request Loop Issue #336

Open
mindpixel-labs opened this issue Jun 27, 2019 · 3 comments
Open

Image Request Loop Issue #336

mindpixel-labs opened this issue Jun 27, 2019 · 3 comments

Comments

@mindpixel-labs
Copy link

mindpixel-labs commented Jun 27, 2019

When running Reel 1.3.0 on jQuery 3.3.1 I noticed in the Chrome Inspector Network tab it has an infinite loop where it keeps making requests to the same image over and over again.

Here is the HTML
<img src="assets/thumbmail.png" width="960" height="540" class="reel" data-image="assets/sprite.png" data-frames="21" data-footage="1" data-responsive="true" data-revolution="100">

In the Network tab, it will keep making requests to sprite.png over and over. Any idea what could be causing this issue? There are no errors reported in the console though.

Also when I view the DOM in the inspector, Reel keeps adjusting the DOM constantly as it keeps refreshing the container.

@MDeeee
Copy link

MDeeee commented Oct 22, 2019

Same issue, any solution?

@LedzZm
Copy link

LedzZm commented Nov 18, 2019

Any updates?

@jiaoZhangZJ
Copy link

  1. .bind >.on
  2. .trigger > var event = new $.Event(eventType, eventData); $(element).trigger(event,eventData);
    3**.!!! all $this.width(), $this.height() 》math.ceil($this.width()) ,math.ceil($this.height())**
  3. setup: height= set(height, +t.attr(height) || math.ceil(t.height()) || opt.height),

function globalTrigger(element, eventType, eventData) {
// console.log('element, eventType, eventData',element, eventType, eventData)
var event = new $.Event(eventType, eventData);
$(element).trigger(event,eventData);
if (!event.isPropagationStopped()) {
element.parents().each(function() {
if (event.isPropagationStopped()) {
return false;
}
$(this).trigger(event,eventData);
});
}

t.trigger( >> globalTrigger(t,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants