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
1 Answer
Reset to default 0No, 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
版权声明:本文标题:Do images in plugins automatically load? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742077373a2419486.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论