0

Why text takes time to load

When I load this the background comes up right away but the text takes a second to load. Why is this? Is it because it has to get the img from google drive which takes time? What can be done to make it all appear together Here is my code https://sololearn.com/compiler-playground/WjLwqVh2ne0l/?ref=app

30th Oct 2024, 4:32 PM
Zvi
Zvi - avatar
4 Respostas
+ 2
you can try prefetching it. put this in the html head <link rel="prefetch" href="https://drive.google.com/thumbnail?id=1rLDoeQz0vz-g5gc-YFXOb_QuJ3hM32_x"> here is a link to an SO topic with a few more suggestions: https://stackoverflow.com/questions/819336/how-to-preload-images-without-javascript also, you can try to use faster servers or smaller images. You don't always need big hd images.
30th Oct 2024, 4:48 PM
Bob_Li
Bob_Li - avatar
+ 1
Bob_Li The img is 36kb. I should make it smaller than that? Also, I put the link in the head and I don’t see a difference.
30th Oct 2024, 7:05 PM
Zvi
Zvi - avatar
+ 1
That’s too bad.🙁. It really is convenient.
31st Oct 2024, 2:21 AM
Zvi
Zvi - avatar
0
Google drive isn't really meant to be an image server. Perhaps they are intentionally slowing it down to discourage people from using it as such?
31st Oct 2024, 12:21 AM
Bob_Li
Bob_Li - avatar