Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8646785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:54:08+00:00 2026-06-12T12:54:08+00:00

I want to know how does media queries reacts. For example, I have place

  • 0

I want to know how does media queries reacts.

For example, I have place an image of size 1400px by 500px for basic media and another image of size 450px by 200px for mobile device.

I am calling it in the same html page using media queries. I want to display small image when user open it in mobile device.

If I call two CSS for same image (ie. changes background using css as per media), will my big image be loaded in mobile device? Or it will simply load the small image ignoring larger one?
I have put the main CSS before the mobile CSS. I think big image must have been loaded. If so, then my site will work slowly in mobile devices.

What’s your view?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:54:09+00:00Added an answer on June 12, 2026 at 12:54 pm

    No, the big picture will not be displayed on mobile devices, as long as you insert it into a media query that excludes it. But it will be downloaded if you organize your CSS this way:

    /* FIRST DECLARATION:
        BROWSER STARTS DOWNLOADING THE IMAGE */
    .my-img-class{
        background:url(my-large-image.jpg);
    }
    
    /* SECOND DECLARATION:
        THE RULE ABOVE IS OVERWRITTEN, SO THIS IMAGE WILL BE DOWNLOADED TOO */
    @media only screen and (max-width: 600px) {
        .my-img-class{
            background:url(my-small-image.jpg);
        }
    }
    

    To prevent mobile devices to keep downloading the large image, you should wrap both rules into a media query.

    Here’s an example.

    @media only screen and (max-width: 600px) {
        .my-img-class{
            background:url(my-small-image.jpg);
        }
    }
    

    The code above will be interpreted only by devices with screens smaller then 600px.

    @media screen and (min-width: 601px) {
        .my-img-class{
            background:url(my-large-image.jpg);
        }
    }
    

    The code above will be interpreted only by devices with screens larger then 600px.


    You can use different approaches to prevent the downloading of both images.

    Much depends on the target of your site. If the mobile version is the most widely used, you should start planning that, then add gradually, through media queries, the content for the desktop version.


    Here are some resources that you’ll find usefuls:

    • CSS3 Media Queries tutorial
    • Effective Example of CSS Media Queries
    • CSS Media Queries & Using Available Space
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have one domain link text i want to know that does google crawl
I want to know that does apple's Push Notification Server generate new device token
I want to know what does RETURN_VALUE mean! I'm stuck at this thing. How
I just want to know how does the table resulting from readXML look like,
I am having a simple code where i want to know when does onRestoreInstanceState
I want to know that how does form based authentication works in weblogic. My
I am learning C# 3.5 and I want to know what [STAThread] does in
Want to know what is the difference between ipv4 and ipv6 and how does
I want to know about the advantages and disadvantages of URL masking. Does it
Does anyone know the d3 equivalent to jQuery attribute selector: $('[attribute=name]') I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.