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

  • Home
  • SEARCH
  • 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 8734639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:53:01+00:00 2026-06-13T09:53:01+00:00

I have a program that outputs reports in HTML format. On average, they are

  • 0

I have a program that outputs reports in HTML format. On average, they are about 5-10 MB, but I have seen extreme cases where they are 500 MB. These reports are purely client side, there is no server involved here.

The problem is that the browser will hang until all the content is loaded, and sometimes will not even load the content. I am trying to find a solution where someone opening the report can always open it. The people opening the reports should be able to open them using the browser and any technology available in it.

I have come up with a solution that will open a report that was previously 100MB by having our program output xml, then transform it to html via xslt, but the user still needs to wait for the entire thing to load into memory. All the content is within these diff nodes are loaded into 2 rows of a table, and the order of them does not matter.

XML:

    <diff>
        <parent loc="some string"/>
        <right> content</right>
        <left> content </left>
    </diff>

The XSLT to do this transformation is below:

<xsl:for-each select="./diff">
    <table align="center" border="1px" width="602">
    <tbody>
    <tr>
    <td colspan="2"><xsl:value-of select="./parent/@loc"/></td>
    </tr>
    <tr>
    <td width="50%" align="left">
    <xsl:if test="./left/text()">
        <xsl:value-of select="./left/text()"/>
    </xsl:if>
    <xsl:if test="not(./left/text())">
         <xsl:variable name="left">
             <xsl:apply-templates select="./left/*" mode="serialize"/>
         </xsl:variable>
         <xsl:value-of select="$left"/>
    </xsl:if>
    </td>
    <td width="50%" align="right">
    <xsl:if test="./right/text()">
        <xsl:value-of select="./right/text()"/>
    </xsl:if>
    <xsl:if test="not(./right/text())">
        <xsl:variable name="right">
            <xsl:apply-templates select="./right/*" mode="serialize"/>
        </xsl:variable>
    <xsl:value-of select="$right"/>
    </xsl:if>
    </td>
    </tr>
    </tbody>
    </table>
</xsl:for-each>

I am wondering if there is a way to either load the file more quickly or to not wait for the whole table to get loaded into memory before displaying the page.

I do not want to load a javascript library to do this, as we don’t want to worry about connectivity while viewing these reports and do not want to install a bunch of files on everyone’s machine, but I can use some script within the xslt.

I know this is an odd scenario and isn’t the ideal way to structure the app, but we do not have time to change the way we generate these reports.

  • 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-13T09:53:02+00:00Added an answer on June 13, 2026 at 9:53 am

    My initial thought is to output a directory of html files. So if we begin with

    /supersize500MB.html
    

    To:

    /container
        /first10percent.html
        /second10percent.html
        /third10percent.html
        ...
    

    Then within the HTML you produce you can hardcode things like:

    <a href="first10percent.html">Last Page</a>
    <a href="second10percent.html">Next Page</a>
    

    XSLT 2.0 has the capability to output several documents from a single input. A quick google gave this. The XSLT processor will have to load the entire input XML into memory but I assume that the output HTML will be produced in sequence. The overall effect should be that the browser does not have to load a 500meg source file, but a 50meg snippet of the whole.

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

Sidebar

Related Questions

I have a program that outputs a table, and I was wondering if there
I have program that requires Python 3, but I develop Django and it uses
I have a program that encrypts files, but adds the extension .safe to the
I have a program that outputs a report into plain text. The report must
I have a CGI script (compiled C program) that outputs its command line arguments
I have a little c# console program that outputs some text using Console.WriteLine. I
I have two separate processes: a C program that outputs comma separated values followed
I have a program, wimaxcu scan to be precise, that outputs data in a
I have a MATLAB program that graphs some things and then outputs the graph
I have a website that outputs Excel reports with hyperlinks back to secure content.

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.