I've been using the same lazy loading script for years and after checking out my blog today, it's suddenly not working, no images are showing at all. I know it's the script because if I just put a basic image tag in, it works fine.
Honestly, the JS file is a mess as most of it is minified and I can't pick out just the lazyloader script. JS file is situated at:
https://helloarchie-helloarchie.netdna-ssl.com/themes/tootsweet/js/cbpHorizontalSlideOutMenu.min.js
Example URL where images should display (All images at top ARE working, but nothing underneath 'Headers-' etc. near bottom of page, because those are set to lazyload): https://helloarchie.co/design/
Here's the HTML I've always used to display image:
<img class="one img-responsive" alt="" data-src="https://helloarchie-helloarchie.netdna-ssl.com/img/rapeseed-field/family-two-young-brothers- yellow-seed-field-photoshoot-bobochoses-filemonkid-mum-nan-play-flowers- jump6.jpg" src="https://helloarchie-helloarchie.netdna-ssl.com/img/grey.gif" />
<noscript><img class="image-asset" src="https://helloarchie-helloarchie.netdna-ssl.com/img/rapeseed-field/family-two-young-brothers-yellow-seed-field-photoshoot-bobochoses-filemonkid-mum-nan-play-flowers-jump6.jpg" alt=""></noscript>
It's a total nightmare as I have thousands of images on my blog and I'd have to manually configure each one if I can't get this working. Can anyone help?
Related
I migrated to WP 5.5 and as many, I have issues with pictures not showing.
I tried to apply all the solutions I found on the internet but none worked:
install "Enable jQuery Migrate Helper"
disable old plugins
disable Smush, caches & co.
I even downgraded the site back to 5.4.1
...
The images are still not showing. But it must be linked to the Lazy Load anyway...
You can see an example here:https://excel-malin.com/en/excel/test123/
This is the code it shows for the picture. It looks like the browser is still showing the 1 pixel lazy load "fake" picture and don't switch to the real picture.
<img class="alignleft size-full wp-image-6373" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-src="https://excel-malin.com/wp-content/uploads/2020/09/calendrier_2018_test.jpg" alt="" width="631" height="591" data-srcset="https://excel-malin.com/wp-content/uploads/2020/09/calendrier_2018_test.jpg 631w, https://excel-malin.com/wp-content/uploads/2020/09/calendrier_2018_test-300x281.jpg 300w" data-sizes="(max-width: 631px) 100vw, 631px">
Some more observations:
It's not a file permission issue: I checked & re-assigned everything (all folders in "Upload" are 755, all files 644)
If I try to show the image in the browser directly with it's URL, it's shown correctly
When I create new post, if not saved yet and I preview it, the image is there. Once it's published, the picture disappear.
I don't care for the Lazy Load, I can live with or without but I absolutely need to make the pictures visible...
Big thanks for any help!
I could finally find the reason:
it was caused by the "WP-Optimize - Clean, Compress, Cache" plugin...
If someone encounters the same issue, check if you have this plugin installed & deactivate it!
I am using Shopify and a script located at https://app.cjdropshipping.com/static/shopify/pod/pod.js to generate mockups for a necklace product. You basically need to upload a photo and then it takes it and sends it to the server to generate a front and back side cover.
Well, this script does not always work on mobile.
You can try the mockup tool at https://purfectgifts.com/products/petnecklace as well as analyze it.
It does not always capture the whole area of the uploaded image dimensions and does not put the generated image instead of the original product image.
I need to have this fixed for mobile (iPhone & Android). It works better on Desktop.
I think this issue about the script has to do with how it loads itself...
Please help me out with this. You can make me the happiest person in the world if you can help me with that.
I am not a programmer but I tried to change how the script loads.
I think the issue is about how the script is loaded.
I appended the following code right above the closing body tag:
<script type='text/javascript' async=false defer=false src='https://app.cjdropshipping.com/static/shopify/pod/pod.js'></script>
My website won't display images on http://teretana.mk/. When I open the debugging console in Chrome I get 2 errors which I do not understand at all.
It's also really weird if you go in a post like this one http://teretana.mk/2016/04/22/td_d_slug_20/ you can actually drag the blank image in Chrome (maybe in other browsers too) and the actual image will display.
In style.css your body.lazy-animation .td-animation-stack .entry-thumb, body.lazy-animation .post img rule has opacitiy: 0 which is hiding all the images. If you remove that then they show up.
I have googled, but couldn't find a solution
Trust me, I've googled!
So, what happens is the following: I have bought a 20 template pack, they are plain html/css & javascript, so I can open them without a webserver in my machine: They work fine.
The problem started when I uploaded a website to my server:
Sliders won't show
Hovering the 4 boxes right under "DISCOVER THE
PLACES YOU’VE NEVER BEEN BEFORE" won't make them stand out
Hovering Video or Gallery items won't apply a fade mask to the image
Clicking on Video or Gallery won't open PrettyPortpholio overlay, instead it opens in another tab
Inspecting the website, I could see there was nothing linked wrong, all .js files were there, all images, the console don't output anything odd, it shows 2 little errors, but it's present in the template seller website as well, and it works there
This is my website:
[removed by user]
Template seller working website:
http://www.template-guide.com/preview/5500/
I've uploaded another template from the same pack to see if it works, I get the exact same bugs:
Alternative bugged template:
[removed by user]
Alternative website from template seller: http://www.template-guide.com/preview/5501/
Tried:
Downloading jQuery and adding it locally (both 1.8.2 and last)
Downloading again camera jQuery script (the .js responsible for the slider)
Downloading an camera jQuery scrip adapted to the latest jQuery
Googled, most issues were related to wrong path
Looks like you will need to update twitter name in myscript.js.
Browse for this section
$('.tweet_module').tweet({
modpath: 'twitter/',
count: 2,
username : 'your_name'
});
and update "username : 'your_name'" or simply comment the above section, if you don't want to show twitter feeds. This causes an error in JS and the JS engine stops parsing anything after that.
I'm building a image-intensive web-page. I just popped in all the images and the site got really slow. Not just loading but also browsing etc.
Is there any good way to tell a browser that images are not necessary to load yet? For example in css:
display:none
or maybe instantiating the images with javascript somehow.
Currently all images are specified in the html, if possible I would like to keep to like that.
<img id="myID" src="about:blank" alt="" />
document.getElementById("myID").src="/image1.jpg";
I have to admit though, I have not used a blank image tag before, but If needed I have always appended an image to a container dynamically
document.getElementById("myDivID").appendChild('<img id="myID" src="image1.jpg" alt="" />');