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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:07:36+00:00 2026-06-13T21:07:36+00:00

I apologize in advance for the general, possibly vague question but it’s been on

  • 0

I apologize in advance for the general, possibly vague question but it’s been on my mind lately.

Currently I employ several buttons that upon hover the image changes (in a few sites). Some are subtle and have background colors change, some have CSS pseudo class hover entire images and some use jQuery hover method. It seems certain things require different tactics. But upon examining these as a whole, it seems I didn’t really use a consistent method.

My question is, what is the best way to do this, in general, so as to make the page the fastest and to be consistent? Even though it works OK, it seems not the best practice to have many calls to images in my CSS files. Maybe I’m wrong.

But yet, if I have lots of jQuery scripts running, that seems contra-indicated too. I look at other sites and they seem to have more *.js files rather than the scripts running in the <head>. For example, currently, I have a header file that has most of my jQuery scripts. I do this because I was always taught to keep these scripts in the <head> tag. For example, is it better to add the scripts closer to the HTML code for readability?

Should I move the JavaScript out into their own files and just includes those in the <head>? My pages work relatively well, but I have not been able to successfully say I have a framework for this phenomenon. I’m trying to improve my strategy for this kind of work before I go and refactor these pages.

Thanks in advance for any input.

  • 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-13T21:07:38+00:00Added an answer on June 13, 2026 at 9:07 pm

    Do no not include js files in head, use RequireJS or head.js to load your js files asynchronously.

    Use only CSS for the hoover and merge all images into a sprite, this way you’ll get a faster page load.

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

Sidebar

Related Questions

I apologize in advance for this newb question, but I've been struggling with the
This is a very general question and i'd like to apologize in advance for
In advance, I apologize for the open endedness, and general wishy-washiness of this question,
I apologize in advance for the rambling nature of this question, but I have
I apologize in advance for this somewhat ignorant question, but I have researched this
I am going to apologize in advance for being extremely vague, but my knowledge
I apologize in advance for a newbie question, but why do I get Access
I apologize in advance if this is a newb question, but what are some
I apologize in advance if this has been asked before, but I haven't been
I apologize in advance for asking something that's been answered several times on SO,

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.