admin管理员组

文章数量:1323225

I have a plugin that I've written that simply provides functionality for shortcodes for images in the plugins /includes/svg folder. So essentially a page can use a short code tag to place an image in an HTML block.

My image folder is getting really big, and I don't want the user to have to download all of my images just to see one page.

My question is: will a browser download all of the images in the /include/svg directory if the plugin affects the page, or does Wordpress only provide those images if the shortcode specifically calls for the image?

I suppose I could clear my browser cache just to find out, but I like my cache.

I have a plugin that I've written that simply provides functionality for shortcodes for images in the plugins /includes/svg folder. So essentially a page can use a short code tag to place an image in an HTML block.

My image folder is getting really big, and I don't want the user to have to download all of my images just to see one page.

My question is: will a browser download all of the images in the /include/svg directory if the plugin affects the page, or does Wordpress only provide those images if the shortcode specifically calls for the image?

I suppose I could clear my browser cache just to find out, but I like my cache.

Share Improve this question asked Oct 6, 2020 at 16:03 Mr NoMr No 11 bronze badge 2
  • If you display all the images on the same page, then yes, the browser would load them all, so limit the number of images displayed per page and I'd also show just thumbnails that link to the full image. – Sally CJ Commented Oct 6, 2020 at 16:39
  • 1 Thanks Sally. I can't upvote comments but you really helped me . – Mr No Commented Oct 6, 2020 at 19:09
Add a comment  | 

1 Answer 1

Reset to default 0

No, they don't. There's zero reason a browser would just download images from the server if they're not used on the page. If that were a thing that could happen then all your uploaded files would download, and obviously that doesn't happen.

本文标签: Do images in plugins automatically load