Update:
- The issue with the image size does not seem to be the cause, as other photos on my website load without any problems.
- Upon further investigation, I discovered that this problem only occurs when browsing on iOS. It functions properly on Android devices.
I have developed an infinite scroll plugin to fetch additional posts via REST API in Wordpress. While the plugin operates flawlessly on desktop browsers, it fails to load the images within the posts when accessed through a mobile browser (Tested on Chrome and Safari using my iPhoneX).
After debugging remotely, I identified the following issues:
- The HTML tag for the image is included in the XHR response.
- The element corresponding to the image exists in the DOM.
- No CSS rules like display: none are preventing the image from displaying.
- The image was received with a status code of 200.
What am I overlooking?
Screenshot from Safari Debugger showing the image response:
Visit my website at: survivalisthk.com (Scroll to the bottom to trigger the infinite scroll feature and witness the image loading issue)