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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:53:30+00:00 2026-06-08T10:53:30+00:00

I am using jquery in a webapp that is basically a hex viewer. I

  • 0

I am using jquery in a webapp that is basically a hex viewer. I put each byte in it’s own element (just a <i> tag) with a unique id (the offset in the file), so I can easily reference it. I basically end up with:

var str = 
  "<i id=h0>00 </i>" +
  "<i id=h1>00 </i>" + 
  "<i id=h3>00 </i>" +
  "...";
$("#myid").html(str);

Setting that html line takes about 3 seconds, when that str has 100K tags (I build the str var differently, so don’t comment on that, I just wrote it that way here for clarity and it is not the problem).

Is it possible to improve the performance of this while maintaining an easy way to reference each of the bytes displayed? I’d like to keep each byte in a tag so I can easily set it’s background color, among other things. The only alternative I can think of is just to load part of the file at a time (keep only 10,000 tags in that str variable).

  • 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-08T10:53:31+00:00Added an answer on June 8, 2026 at 10:53 am

    Simply don’t.

    No one will ever need to look at 100k bytes at the same time, even if someone would have a screen large enough to actually view them.

    Just render the tags that you actually need to show right now, and render more when needed.

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

Sidebar

Related Questions

I have a mobile webapp that I am developing using jquery mobile. I am
I am developing a java webapp, using jsp/jquery/ejb/jboss. I have a web-form that enables
I'm trying to update some HTML using javascript in a webapp that uses JQuery
using jquery's .post i send do my php code an object that with var_dump
Using jQuery Nearest Element , I would like to select elements in a circular
I am creating a webapp for iPhone using jQuery Mobile and PhoneGap. Everything works
Background: I am building a webapp that makes use of JQuery and the Facebook
I'm building a webapp using JQuery, Stripes, Spring and JPA (Hibernate). I have a
I am building a webapp using jQuery and jQuery UI. I am at an
I have a asp.net webapp and I am using Jquery. I wanted to know

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.