advanced custom fields - Which is faster: Loading images from the repo, or loading them using ACF Image Content via Media Librar

admin2025-04-20  0

I have two methods of loading images in my mind right now:

1 - I store an image in a folder within my repo, and load it as a background image, defining it statically in CSS/Inline CSS.

2 - I store an image in the WordPress Media Library, upload it to an Image Content field within Advanced Custom Fields, and then load the src using inline styles in the template.

Which of these is faster?

My mind is telling me #1 because I don't have to go and get the img url from the uploads folder as directed by ACF, which is stored in the database but equally I don't know WordPress that well, so I might be wrong.

Thanks

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745115042a285811.html

最新回复(0)