简体   繁体   中英

Open a large html file on browser

I have a desktop bassed eclipse plugin application. In which, for a case I am opening html report file in browser.

for which I am using this:

try {
    browser = new Browser(shell, SWT.NONE);
    browser
    .setUrl(path);
    shell.open();
}
catch (SWTError e) {
    e.printStacktrace();
}

But in one case I am having html file of 90 MB which is not able to get open by it. It got hanged. So request you for any action around it need to be done. On any other optimized way to open it.

Instead of loading the whole file, load it on demand.

Window onscroll event is your friend.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM