-
Notifications
You must be signed in to change notification settings - Fork 75
Conversation
@ChristinFrohne I have swapped the hero image to use the |
@nisarhassan12 Do I understand it correctly that the blur effect only takes place if the Internet is slow? Then it's nice! But the effect shouldn't delay the loading process or be visible if there is no glitch. |
@ChristinFrohne I think that is the case. Do you see the blur on your side? I guess you are on a fast internet connection. On my side, I do see the blur instead of the glitch which to me looks a lot nicer. |
Yes, I can see blur. If I'm comparing it with the current loading speed, it takes a bit longer with the blur. (See recording). Would be great if it's only visible on a slow connection. If the connection is fast, the images should load immediately without blur or glitching. |
@ChristinFrohne Not sure if that is possible. I have asked in Gatsby Discord let's wait for the response there.
I think it would be nice if we're to achieve the above even if we are unable to do so the blur is a lot better then the glitch for all users in general. The blur effect does not look bad either. Yeah, there is a tradeoff the users on fast connections get to see the image instantly without the blur but generally, for all the users the blur is a lot better. Do you like the animation when it changes from blur to unblur ? Also I remember that last month on our call you were not able to see the blur on https://nisar.dev/#testimonials |
To be clear: The blur effect is great, just be sure that it doesn't slow down the loading speed. It's a great idea. Please implement it :) |
75eb043
to
7575677
Compare
@ChristinFrohne Should I use the |
Let's use it whenever there is a glitch. For me that's only at the top of the pages. Can you confirm that? So then it would be great to have for the pricing icons on /pricing, the ice-cream icon on /features, the cloud-icon on /self-hosted, etc. |
@ChristinFrohne Thanks, Sounds good.
Thanks. Yeah, the glitch is usually observable on the start screen of most of the pages so it would make sense to use Unfortunately we can't use SVGs with the Please provide me with the PNGs of the Ice Stick that appears on Also the goal for this PR is not just to remove the glitches but to make image performance better i.e improving the page speed test results and getting rid of the problems shown in the screenshot here https://github.com/gitpod-io/website/issues/821#issuecomment-717387737. For now it would be ok to just work on the images with the glitch but at some point in near future, at least all of the large size images apart from small svg icons should be migrated to use |
Can we not just put the |
I don't think it is possible the way The glitch happens not becuase of the SVGs most of them are small and suitable in size the cause is I think the galaxy background that loads once the browser starts rendering the SVG it then loads the background and not with the SVG itself. Also for every icon/image that uses the Galaxy background the same image is downloaded which is not good. Would be nice if we were to figure out a way via which we only download it once and not as many times it's used. I think this was what we were aiming for when we first implement the images with the Galaxy background. The way it currently is the Galaxy background causes more problems then it solves. @jbicker What do you think ? Thanks |
7575677
to
962c9c0
Compare
Hi @nisarhassan12! So, as discussed in our 1:1:
|
FWIW, I agree with @jankeromnes in most points in https://github.com/gitpod-io/website/pull/826#issuecomment-728847337. Most small images should be fine with leaving them as PNGs. In addition we could convert all bitmap images to progressive JPEGs which will allow progressive loading for images but don't think we would benefit much from this in terms of performance for small images. See JPEG compression and Interlacing:
|
@ChristinFrohne I think it would be better if you were to provide PNGs for all of the SVG images that use the Galaxy background. If you don't have time then providing at least a subset of them which are critical i.e the ones on the start screen would be quite helpful for now and the remaining ones can be deferred for now but we must address them later at some point. I had a little chat with @jbicker and we both concluded that we don't know of a way we can cache the Galaxy background to avoid it being loaded separately for every instance that uses it. |
Okay. Thanks for digging into it @nisarhassan12 Here are all galaxy .png images. I hope the sizes fit well, let me know if I shall adjust something. |
91ef969
to
34f5e4e
Compare
@jankeromnes I agree that it does not look so good but it does helps with the layout stability and better lighthouse score i.e using just the PNG without the Maybe we should use the I think it's maybe ok to not use it for off the screen images i.e the Rocket image for which you shared the screencast not too sure My worry is user directly landing to a fragment like We could put custom width and height attributes on the images to avoid the above but that would only work for a specific screen size and not universally across devices with quite different sizes. What do you say? Thanks |
34f5e4e
to
6d8084a
Compare
@jankeromnes This is how the tracedSVG looks also we can change the SVG fill to whatever colour we like: You can preview the change here which will be shortly deployed here https://deploy-preview-826--gitpod-website.netlify.app/self-hosted Also the tracedSVG is almost un-noticeable on fast internet connections. |
6d8084a
to
22f6fbd
Compare
Thanks. @ChristinFrohne for the feedback I'll first implement these without the blur. |
691d82d
to
593503e
Compare
a7177a8
to
2c941ea
Compare
I have migrated most of the images on the most important pages i.e |
9b4d5c5
to
41a16d3
Compare
Thanks, @ChristinFrohne for providing the remaining images.
Yeah, that is only for the GItpod Screenshot on the home page and few other images maybe. I tried the tracedSVG instead of the blur like it is the case for all the other icons but the tracedSVG has some layout instability (Note: this is not the fault of Gatsby Image instead my inability to come up with a correct solution due to my lack of knowledge and understanding) with the blur the layout looks stable. see the below video where I slowed mimicked a slow internet connection so that this can be visualized better. Peek.2020-12-30.10-27.mp4Unless someone is able to figure out how the Layout could be stable with the tracedSVG I would say let's go with the blur? I think the blur is better than the layout instability What do you say? Thanks EditI have removed the blur you can test the behaviour without it via the deploy preview. Also, I have migrated the icons you just provided to GatsbyImage as well. |
7062da8
to
6b829fb
Compare
I feel like here is a misunderstanding. Why is there a dark image with white spaces before the original image loads? I thought you wanted to swap all .svg images that contain a galaxy image with a .png to improve page speed. I just checked the page speed again and according to it the galaxy images are not an issue. It suggests to not use .png formats and to simply decrease image size for several screenshots and Twitter profile pictures. Also, the page speed for https://deploy-preview-826--gitpod-website.netlify.app/ is slower than for https://developers.google.com/speed/pagespeed/insights/?hl=de&url=www.gitpod.io. I feel like we lost a bit of focus here. From the linked issue, the PR is supposed to resize images properly. According to "page speed" this is the list of the images that should be resized. What do you think? Would it be best to start a new PR for that? Sorry about the confusion, please clarify in case I missed something. |
Thanks, @ChristinFrohne. Sorry that I was not descriptive enough please let me know If I was not able to explain anything from what is said below.
The way The placeholder can be either a blurred smaller version of the original image or a traced SVG(which is a dark image often with whitespaces or what is shown in https://github.com/gitpod-io/website/pull/826#issuecomment-733032577). While using a
Image performance is quite hard to get right and it has many dimensions and it is even harder without Let say we have a png image with size
All of the areas where Performance ScoreRegarding the page speed Are you sure? I just checked it now found out that without Without
|
Then we should also be able to merge and close this PR soon. Does that work for you? Thanks! |
8cee5a2
to
2611fc7
Compare
I have added the blur effect to the post preivew for each post rendered on |
2611fc7
to
49dad29
Compare
Merging this tested a few pages it seems to give better overall results on Page Speed Insights. |
Addresses https://github.com/gitpod-io/website/issues/821#issuecomment-717387737