- Joined
- Apr 29, 2023
- Messages
- 27
- Reaction score
- 2
I had this line in some code:
small_digit.src = "Images/M" + i + ".gif"
The code worked fine. It creates an array of 10 images for later use. Then I added an SSL certificate to my site. I immediately started getting 404 errors on the images being loaded.
I had to change it to this and the 404 errors stopped.
small_digit.src = "https://www.dddddddddd.com/ffffffffffff/Images/M" + i + ".gif"
My problem with the above is I assume there are now 10 DNS requests every time the page is loaded.
Is there a way to do what used to be done without having to fully qualify the image? Also, why did the SSL break it? TIA
small_digit.src = "Images/M" + i + ".gif"
The code worked fine. It creates an array of 10 images for later use. Then I added an SSL certificate to my site. I immediately started getting 404 errors on the images being loaded.
I had to change it to this and the 404 errors stopped.
small_digit.src = "https://www.dddddddddd.com/ffffffffffff/Images/M" + i + ".gif"
My problem with the above is I assume there are now 10 DNS requests every time the page is loaded.
Is there a way to do what used to be done without having to fully qualify the image? Also, why did the SSL break it? TIA