-
Notifications
You must be signed in to change notification settings - Fork 107
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
Expected behavior happening in reverse. #12
Comments
Everything looks fine here, as far as I can tell. I just tried this code in the demo directory:
So not super sure what the issue is. Can you try that and see if it works for you? |
Hi @whackashoe Thanks for the response. Curiously, I am getting no substitution at all now. I reviewed network activity and it only shows the large pic being loaded, though maybe that's just a firefox thing. When I replaced the base64 string with a direct link, it did load. However, the desired effect still did not occur. On my local server, I created a new file 'test.html' and stuck your code in verbatim. I even made sure to declare encoding (UTF-8). Console does indicate that the Jquery function is being executed though. If my understanding is correct, Antimoderate is supposed to substitute the tiny pic in and seamlessly replace it with the large pic as it loads -- is that accurate? |
Also, what OS and exact version of FF is this? If all else fails maybe I can try to reproduce, and see if I can debug from there. |
I am running OSX 10.11.4. I was using regular FF (latest stable release I believe); however, I'm now using dev edition 47.0a2. So, I added that bit of styling and flipped the cache on and off a bunch of times. Antimoderate is kinda working now. I switched to using a 5 MB image with a 8kb tiny one. It worked for a bit; however, it doesn't seem to be consistent. For the most part, the tiny image is loading long after the large image. Any suggestions? Should I try another browser in particular? https://www.dropbox.com/s/xm07o9s2h0v8uer/Screenshot%202016-04-20%2023.45.14.png?dl=0 |
On Linux Google Chrome Version 50.0.2661.75 (64-bit) during throttle there is no issue, it is working correctly. @frigginglorious thanks for testing |
@frigginglorious thanks for your replies. In your recent post, I see you were able to reproduce the error from the OP. I did try your code from your first post, but the issue remains. Actually, when I use the encoded image as source, I see no network activity indicating that it was parsed. Even with a link to a regular jpg, the tiny pics do not show. I just tried with Chrome 47 on OSX and Antimoderate does work. Once I turned on throttling, the mechanism was clearly apparent. |
Ok I've added this to bountysource since I don't have access to an osx machine for further testing. |
So, Antimoderate seems to be working insofar that it "knows" about my tiny image and my regular thumbnail.
To be clear, my problem is that I get the large image first and then it is replaced by the small image.
Am I doing something wrong?
Thanks.
Here is my HTML:
Here is my JS:
The text was updated successfully, but these errors were encountered: