different images on mobile and desktop

Hello!

What is best practice for the use of images on desktop and mobile - regarding performance/loading time - with BeBuilder?

I want to use images with smaller filesizes on mobile, and the big ones for desktop.

To be clear, the same image, but with different sizes.


CSS display:none would still load the images, that are not being shown.

<style>
    @media only screen and (min-width: 1025px) {
        .mobile-only {
            display:none !important;
        }
    } 
    @media only screen and (max-width: 1026px) {
        .desktop-only {
            display:none !important;
        }
    } 
</style>

Thx in advance and best regards

Markus

Comments

Sign In or Register to comment.