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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:17:35+00:00 2026-06-11T10:17:35+00:00

I am using the text box in my page, I used the images for

  • 0

I am using the text box in my page, I used the images for the text box to make the UI to look better(superimpose the images on the text box).I used the left side part of the text box image(my custom image for the text box) and right side part image and applied those two images using background property of the two <span> tags surrounded the <input> tag as below

<span class="right-side-BG-image-for-test-box>
    <span class="left-side-BG-image-for-test-box>
       <input/>
    </span>
</span>

While i focus or click the text box, using jQuery i added the class focus to the two spans surrounding the <input> tag and which give different background images(left and right) to highlight that the text box is focused.

My Question is whether, by using the four img tags(before the text box with the source attribute referring to the image paths of those four images(two normal and two focus images) with display:none css property, will improve the load time of image?, since i don’t want user to experience some time lag in loading the focus images when user clicks the text box?. Thanks in advance for the answer.

  • 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-11T10:17:37+00:00Added an answer on June 11, 2026 at 10:17 am

    try to preload the focus images as soon as possible but don’t display it yet

    <img src='home-focus.jpg' style='display:none;'>
    <img src='about-focus.jpg' style='display:none;'>
    

    this will ensure that the images are loaded already in the page even the page doesn’t really need to show it once the page is completely loaded.

    once the jquery/javascript needs the image, the browser will not request for the image resource again

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

Sidebar

Related Questions

I am using jQuery to add placeholders to each text box on a page.
I have something like the StackOverflow's "Ask Question" page, where a text-box is used
I have attached an event to a text box using addEventListener . It works
I have text box to enter a phone number. I'm using AJAX MaskedEditExtender and
I have one text box on that text box i am using required field
I have an Asp.net text box that is being auto populated by javascript using
I am using ajax calendar extender for 'From date' and 'To date' text box,
I am using jquery autosuggest to populate the data in a text box. When
I am using this probably ugly javascript to show a text box (in a
How to print a value in the text box from the text file? Using

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.