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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:00:29+00:00 2026-05-25T12:00:29+00:00

A practice I commonly use when manipulating content on websites is to absolutely position

  • 0

A practice I commonly use when manipulating content on websites is to absolutely position elements with a left (or sometimes top) value of around -2000px, so as to ensure it won’t be seen on screen.

Now, I know I could use display: none to make my objects disappear, but some elements don’t play nice when not displayed, and sometimes I need to make a reference to some property like its width, for example, which can’t be accessed when the display property is set to none. So often I will position the element so it is hidden ofscreen.

My assumption, then, is this:

Since the object is not rendered on the screen there should be no difference in the performance of the website* when I use left: 2000px as opposed to left: 200000000px.

So I assume that if the following code is used, there would be no difference in the performance of the two pages:

Page one:

<div style="height:100px; width:100px; left:-2000px"></div>

Page two:

<div style="height:100px; width:100px; left:-200000000px"></div>

Are my assumptions correct? If that element were the only difference between two given pages, would there be any difference (however small), in performance?

*That is to say load time, page size, responsiveness, or any other measure of performance

=================================

Update

I have profiled the pages as suggested by Michael and found the following: Spark was correct in saying that the load time would be affected by the file size. There was a difference of four bytes in the file size which corresponded to a difference of about 4ms in load time.

Secondly, my incredibly large left value was interpreted correctly by IE and Firefox, but not by Chrome. Chrome doesn’t seem to recognise values greater than around 135 million pixels. However, given the performance difference seems to be minimal, I can’t speculate as to why they would have decided to limit it to such an arbitrary amount.

  • 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-25T12:00:30+00:00Added an answer on May 25, 2026 at 12:00 pm

    You can attempt to profile the page load time with Firebug (or Chrome/Safari Developer tools), but I would be extremely surprised if there was any difference at all. The browser cares about the x,y,z coords of an element. It doesn’t matter if those are on or off the screen; they are still just three discrete data points.

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

Sidebar

Related Questions

Best practice is to use unique ivs, but what is unique? Is it unique
Is there a commonly-accepted practice for designing java objects that are frequently loaded and
Is there a commonly accepted practice on how to propagate a revert from trunk
I was wondering what the best practice is when populating commonly used dropdownlists in
In ASP.NET MVC it seems to be common practice not to use GET requests
In practice with C++, what is RAII , what are smart pointers , how
During practice of customizing VirtualPathProvider, I found that it the custom VirtualPathProvider can be
The practice I'm discussing is: Your project/product has a ticketing system for bugs, features,
What's the best practice for making sure that certain ajax calls to certain pages
What is best practice when creating your exception classes in a .NET solution: 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.