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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:59:59+00:00 2026-06-02T20:59:59+00:00

I am trying to improve the loading speed of an HTML page. Some Javascript

  • 0

I am trying to improve the loading speed of an HTML page.

Some Javascript methods are attached to some input fields with JQuery’s keyup() method. I have managed to safely remove all usage of JQuery in the page so far, but this is the last issue. If possible, I would like to completely get rid of JQuery on this page.

Is it an acceptable and safe practice to directly link my Javascript methods to my input field like this (from within HTML code):

<input type="text" id="my_id" onkeyup="do_something()" />

My concerns are the following:

1) I know that JQuery deals with many corners cases and bugs in browsers, but I am only interested in supporting recent browsers version (not IE 8,7,6 for example). I am scared of introducing a bug.

2) It is considered good practice to separate styling from HTML, but what about Javascript code? Is there any good reason to keep assigning my Javascript methods with JQuery?

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-06-02T21:00:01+00:00Added an answer on June 2, 2026 at 9:00 pm

    It is considered good practice to separate styling from HTML, but what
    about Javascript code?

    This can be subjective. In our company we try to keep HTML clean of scripts and use a script file reference only. Within that file we bind the methods to the events for the fields we need to. Unobtrusive JavaScript keeps HTML clean. Be it through jQuery or JavaScript directly is up to you I guess. In addition the js files can be minimsed if required, which is what we do at the moment.

    Is there any good reason to keep assigning my Javascript methods with JQuery?

    jQuery is cross-browser compatible. What works in FireFox will work in IE and Chrome (as far as I know). If you plan on supporting any version of IE and any other browser, depending on what the scripts do, you might need to work-around browser compatibility issues.

    By no means does that mean use jQuery and you will find plenty of arguments in which people state you don’t need it.
    In fact some jQuery methods have been known to be quite inefficient, .live() was for example quite a memory hog I believe, which has now been deprecated for on() which apparently deals better with that issue.

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

Sidebar

Related Questions

I'm trying to improve the user perception of page load time of some web
I'm trying to improve the performance of my web app where a page does
i'm trying to improve the excuting speed of my python program through py2exe…but i'm
I am trying to improve scrolling performance of a UITableView. I am loading the
I'm trying to improve the speed of our server but I would like to
I am trying improve the fault tolerance in a JSP-page that is updated on
Im trying to improve the Java Html Document a little but i'm running into
I am currently trying to improve website loading times and I am using the
In trying to improve the speed of an immensely slow query (several minutes on
I'm currently trying to improve the speed of SELECTS for a MySQL table and

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.