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 7600323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:52:58+00:00 2026-05-30T22:52:58+00:00

When developing a site with a responsive CSS design, your site changes the way

  • 0

When developing a site with a responsive CSS design, your site changes the way information is presented based off the client’s screen size. In many cases, smaller screen sizes mean that less information is displayed.

Lets say you have a site designed for the desktop. In your server-side code, you make several database queries and then on the pages you display that information in some form.

Now, lets say your CSS design in responsive and some information is not shown to devices with small screens. Lets say that some of that information is that is not shown is from database queries. What this means is that when a mobile device loads up this page, the server-side code is making unnecessary database calls because the resulting information isn’t going to be shown to the end user because of their screen size.

Responsive Design typically uses CSS media queries to determine what information is shown based off of device screen size. What is a good approach to writing effective and efficient server-side code for responsive designs?

  • 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-05-30T22:52:59+00:00Added an answer on May 30, 2026 at 10:52 pm

    Have you considered using AJAX to pass pass data about the screen size back to the server-side php? Then run queries based on the corresponding CSS design. Your problem comes in if you have mobile devices that don’t support JavaScript or browsers that disable it. You also have additional maintenance – if you change your CSS to display more or less, your scripts will have to be updated to stay in sync.

    In general, I believe that CSS media queries are meant to be used to optimize the display of the content of various sizes but ignore the “losses” of content. This may mean that extra queries/calculations/content are loaded but hidden. The upside to this is that if your user is operating in a browser that is scaled down and then they maximize it, they get a fresh display of the full page. If they don’t have the full set of content, though, they won’t get to take full advantage of it unless they refresh the page.

    I think you need to ask yourself – is the extra build and maintenance effort on your part worth saving some queries on the backend?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently developing a site and have a need for a javascript-based carousel/slider
I am currently developing a site for a client (http://184.168.136.225/). Having some issues with
I have a responsive site that I'm developing where I'm using a image slider
I am developing an Android client for the site with authorization. I have a
We're developing a Python web service and a client web site in parallel. When
I've been developing a site for a client that uses the Tweetr API to
I am developing a site for a client and one of the requirements is
I am developing site with WordPress and I'm newbie for WordPress. WP adds <p>
I'm developing a site in Visual Web Dev Express, and when I run/debug, I'd
I've been developing a site using ASP.NET MVC, and have decided to use the

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.