Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print Screen window pop-up very slow on IE #26

Open
shriniketsarkar-zz opened this issue Apr 11, 2017 · 9 comments
Open

Print Screen window pop-up very slow on IE #26

shriniketsarkar-zz opened this issue Apr 11, 2017 · 9 comments

Comments

@shriniketsarkar-zz
Copy link

The current version of growth chart pops out a window for the print functionality. When the application is run in IE, launching the print window opens up the pop-up but the content is rendered very slowly. This results in the user staring at a blank page for several seconds and sometimes minutes before any UI gets rendered on the screen. This gives the user an impression that the UI is stuck.

The delay ranges from 14 sec to roughly 2mins depending on the number of data points to be drawn on the graphs.

In other browsers this page loads fairly quick.

@nschwertner, @vlad-ignatov Do you see the same behavior while running in IE?
IE Version's : IE 10 , 11

@nschwertner
Copy link
Member

Just tried it on IE. Indeed, the print page loads very very slowly. Not sure why it behaves this way on IE11. The app was written in 2012-2013 as a proof of concept with support for IE8 in mind and a lot of the functionality being progressively added to the scope. MedAppTech is working on v2 of the application that will, among the others, resolve these issues. This is a grounds up overhaul of the tool including an improved graphics engine. PGC v2 will be available by the end of the year.

@shriniketsarkar-zz
Copy link
Author

@nschwertner Its good to hear that there is a version 2 of the app coming.
Considering that version2 will not be available until the end of year do you have any improvement ideas to this pint window issue ?

Until now I have attempted to solve this with the following ideas :

  1. Reduced the number of scripts by concatenating them into 1 JS script. This solves the problem where IE supports 8 max concurrent connections to the server.
  2. I have cached some of the static files Ex. GCMenuItemsJSON.txt using localstorage to avoid refetch.
  3. Moved some of the methods like : getStartAgeMos to the print window instead of accessing them from the main window stack.
  4. Attempted to add a loading indicator with a hope that it will show up until the graphs are drawn. But it doesnt, because the drawing of graphs blocks the main thread for several seconds before any of the UI can show up.

So all the above have not really helped much in reducing this slowness in rendering the UI.

I noticed that the graphs drawn on the print screen have a different layout as compared to the graphs on the main window.
Questions:

  1. When the app was written, did the physicians want a different layout for the graphs/tables as compared to the main window graphs/tables?
  2. Considering usability did the physicians want to interact with the graphs on the print window?

@vlad-ignatov
Copy link
Contributor

vlad-ignatov commented Apr 12, 2017 via email

@nschwertner
Copy link
Member

Right. I just now updated the hosted copy to the latest code from GitHUB. See if this fixes the issue

@vlad-ignatov
Copy link
Contributor

vlad-ignatov commented Apr 12, 2017 via email

@nschwertner
Copy link
Member

Ok, this is the new sandbox. @travistcummings and @amyballard could you help?

@amyballard
Copy link

Vlad, I'll get the new sandbox pointed to the latest growth chart tomorrow.

@gajen0981
Copy link

At Boston Children's we currently have this open source version live and we are seeing the same thing of slowness about 5 mins average.

@nschwertner
Copy link
Member

Did updating to the latest PGC code (v0.1.2) make any difference in regard to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants