Reduce build size to improve the situation with first loading on limited/slow bandwidth network
We are working on reducing the build size to improve the situation with charts loading on limited/slow bandwidth network
@tony-shannon
We have reduced the build size. Please check it and let us know the results (if the situation with first loading on limited bandwidth was improved) Thank you in advance. The Optimization was done on both dev. and showcase boxes.
thanks seems ok here , but I have good wifi and 3g , so not where I usually have trouble. Can I ask what reduction you've achieved? Do you have a tool that simulates narrow bandwidth to test this yourselves? thanks Tony
On 8 November 2017 at 16:30, anna-otrokhova [email protected] wrote:
@tony-shannon https://github.com/tony-shannon
We have reduced the build size. Please check it and let us know the results (if the situation with first loading on limited bandwidth was improved) Thank you in advance.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PulseTile/PulseTile/issues/53#issuecomment-342873167, or mute the thread https://github.com/notifications/unsubscribe-auth/AA5X3IH_5SOKpPLk-eCjkQ_PgCVjAnvCks5s0dcngaJpZM4QWmKm .
@tony-shannon
<<Can I ask what reduction you've achieved?>> We have reduced index.js file (6.8 MB -> 3.1 MB) and vendor.js file (2.5 MB -> 602 KB )
As result the pages load twice as fast as before .
<<Do you have a tool that simulates narrow bandwidth to test this yourselves?>> We have tested using dev console http://prntscr.com/h85yid , http://prntscr.com/h85ysy
My pleasure Anna
well done @anna-otrokhova that Chrome devtool is very helpful I;ve tested with Slow 3g setting and seems to be ok. Funnily if you test in offline mode, the spinner keeps spinning, can you take a look?
Will close this issue shortly.. T
@tony-shannon
Step 1) We send request to server and spinner starts spinning while waiting for the response Step 2) Server sends response and the result is displayed on web interface
If you turn off the internet (offline mode) you can't get response so spinner will keep spinning
OK, I'm not sure if this is sensible.. If we can work out that the browser is effectively offline, shouldnt it pass back a message to say your internet connectivity is the problem? Otherwise I/others will wait for the spinner, indefinitely.... Thanks
On 9 November 2017 at 15:00, anna-otrokhova [email protected] wrote:
@tony-shannon https://github.com/tony-shannon
Step 1) We send request to server and spinner starts spinning while waiting for the response Step 2) Server sends response and the result is displayed on web interface
If you turn off the internet (offline mode) you can't get response so spinner will keep spinning
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PulseTile/PulseTile/issues/53#issuecomment-343180515, or mute the thread https://github.com/notifications/unsubscribe-auth/AA5X3Nna4xcJB-R3gN3KoJjdnglYaeeZks5s0xN_gaJpZM4QWmKm .
@tony-shannon
Dear Tony, Let me put it another way, please:
-
First case Your internet is off from the start and you try to open the site
You will get such results: http://prntscr.com/h8a7zv Site loading won't be even started. -
Second case Step 1) We send request to server and spinner starts spinning while waiting for the response Step 2) Server sends response and the result is displayed on web interface
You had internet from the start (on Step 1) and internet was turned off between Step 1 and Step 2 http://prntscr.com/h8aa7x
So request was sent when you still had internet but response can't be sent back. So you will see the error that internet connection is closed in dev console.
ok thanks Anna Can you get some advice on more graceful/clearer ways of failing offline please , both First/Second case... Again I think there could/should be a better way.. thanks Tony
On 9 November 2017 at 15:21, anna-otrokhova [email protected] wrote:
@tony-shannon https://github.com/tony-shannon
Dear Tony, Let me put it another way, please:
First case Your internet is off from the start and you try to open the site You will get such results: http://prntscr.com/h8a7zv Site loading won't be even started. 2.
Second case Step 1) We send request to server and spinner starts spinning while waiting for the response Step 2) Server sends response and the result is displayed on web interface
You had internet from the start (on Step 1) and internet was turned off between Step 1 and Step 2 http://prntscr.com/h8aa7x
So request was sent when you still had internet but response can't be sent back. So you will see the error that internet connection is closed in dev console.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PulseTile/PulseTile/issues/53#issuecomment-343187453, or mute the thread https://github.com/notifications/unsubscribe-auth/AA5X3Hkl-rrFAeUJyQ7ccXdv3DSwEiIhks5s0xhzgaJpZM4QWmKm .
@tony-shannon
Ok, let me think about it and consult with Kirill, please. I will get back to you on that tomorrow.
thanks Anna T
On 9 November 2017 at 16:22, anna-otrokhova [email protected] wrote:
@tony-shannon https://github.com/tony-shannon
Ok, let me think about it and consult with Kirill, please. I will get back to you on that tomorrow.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PulseTile/PulseTile/issues/53#issuecomment-343208213, or mute the thread https://github.com/notifications/unsubscribe-auth/AA5X3Bx2GXVuBU3Aj_3h22uzJ-9W7u1Oks5s0ybNgaJpZM4QWmKm .
@tony-shannon
-
First case If we need to support offline mode for the entire PulseTile application we can use one of the existing solutions (for example, https://www.npmjs.com/package/angular-offline). Though this would mean, that we need to dig into the respective modules deeper, implement caching and offline behavior for all of the network communication functionality and test it. If you would like to go this way, I can try to come up with a ballpark estimate for this feature, but it would be an extensive task.
-
Second case We can show an error to the user and hide the loader, if the connection was lost in between the request from the client and respective response from the server.
thanks @kbeloborodko
-
Good point, Offline working likely needs to be done at some point but not now, we can park that for now.
-
A well written error would be better, thanks
@tony-shannon
Dear, Tony!
I apologise for not getting back to you about your questions sooner. We have discussed the range of options for a well written error. Here is the short list of possible solutions from our point of view:
-
If connection was lost during initialising of the application a notification will appear instead of spinner sign: “Some connection error has occurred. Please check your connection and try again” (For starting the application only)
-
If any server error 5xx returns from server we can display a note in popup window: “Something is wrong with the server. Please try again later.” ( For the whole site)
-
If 403 code is returned we can display a note in popup window: “Your token has been expired. Please reload the page.” (For the whole site)
Just as example: http://prntscr.com/h9ylf2 , http://prntscr.com/h9yo0n
Please let us know your feedback if our variants or some of them are preferable for you.
HAppy to try those thanks T
On 13 November 2017 at 17:09, anna-otrokhova [email protected] wrote:
@tony-shannon https://github.com/tony-shannon
Dear, Tony!
I apologise for not getting back to you about your questions sooner. We have discussed the range of options for a well written error. Here is the short list of possible solutions from our point of view:
If connection was lost during initialising of the application a notification will appear instead of spinner sign: “Some connection error has occurred. Please check your connection and try again” (For starting the application only) 2.
If any server error 5xx returns from server we can display a note in popup window: “Something is wrong with the server. Please try again later.” ( For the whole site) 3.
If 403 code is returned we can display a note in popup window: “Your token has been expired. Please reload the page.” (For the whole site)
Just as example: http://prntscr.com/h9ylf2 , http://prntscr.com/h9yo0n
Please let us know your feedback if our variants or some of them are preferable for you.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PulseTile/PulseTile/issues/53#issuecomment-343987978, or mute the thread https://github.com/notifications/unsubscribe-auth/AA5X3BAFYMc8a16nCL7dXff7tI9f7pchks5s2He5gaJpZM4QWmKm .
@tony-shannon
Tony, our estimation for these tasks is 12 hours for each version (react and angular). We can include these tasks in the schedule after finishing the current Block 2. What are your thoughts?
Please let us know your feedback.
Please email any estimates directly Anna, not a github discussion point
@tony-shannon Ok, I am sorry.
No prob This issue can now be closed as we will open up issue for these other tasks, thanks