Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

CSS Using multiple background images in CSS with responsive media queries

purelocal

New Coder
Hey people ,

My site has 1 100% cover background per page - in CSS - to display different sizes by screen size the following can be used :

@media screen and (min-width:460px) {
background image with ~460px size

@media screen and (min-width:1280px) {
background image with ~1280px size
...etc

My question is : I seem to think that this would add more large files to my CSS and do nothing but increase load time - does Google or user download all of these files or is it only pulled when it matches the CSS media criteria according to the users/agents/bots device width ?

Website for reference : https://www.purelocal.com.au/
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom