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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:23:52+00:00 2026-05-27T06:23:52+00:00

I came to know that, if we dont give width and height attr. in

  • 0

I came to know that, if we dont give width and height attr. in image tag there will be a performance isssue.
I have a div element for which i’m setting width and height in percentages. Also the same div is having a background image of fixed size say 140px * 140px.
Here, will there be a perfromance issuse?.

markup example:

<div style="width:50%;background:url('imgofsize140*140') no-repeat">&nbsp;</div>

Thanks

  • 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-27T06:23:53+00:00Added an answer on May 27, 2026 at 6:23 am

    I wouldn’t think there would be a performance issue in the same way as not specifying height and width on a img tag, since that forces the browser to repaint the whole page and that’s where the performance issue is.

    http://code.google.com/speed/page-speed/docs/rendering.html#SpecifyImageDimensions

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

Sidebar

Related Questions

I recently came to know that in C++ pure virtual functions can optionally have
i have googled and came to know that how to use the variable arguments.
I am new to java, and came to know that there are two Right
After googling i came to know that Index seek is better than scan. How
I know that the reason that Microsoft came out with ASP.NET MVC was to
I know the bits just came out today, but one of the first things
You know firstly Entity Framework came with Visual Studio 2008 SP1. Now it is
I came across following code and don't know what does having from twice mean
I don't exactly know how it came to be this way, but here's the
I came across these 2 macros in Linux kernel code. I know they are

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.