break-shot | Desktop app for capturing screenshots of responsive websites | Image Editing library
kandi X-RAY | break-shot Summary
kandi X-RAY | break-shot Summary
Break Shot is an amazing screen capture app for responsive websites. It detects all available resolutions and take screenshots of each one.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of break-shot
break-shot Key Features
break-shot Examples and Code Snippets
Community Discussions
Trending Discussions on break-shot
QUESTION
I've created a simple function which is responsible for reversing scroll direction but it seems like the feature is cpu heavy which is causing the lag on mobile devices - my assumption.
At first, I thought that it's gotta be that way and there is nothing I can do to optimize it, until I discovered website with similar function but with no lag at all. I discovered this in this question: Modify scroll direction
Here is the link to the website from the question: http://buero-buero.org/
Apperently they are using this:
...ANSWER
Answered 2017-Oct-15 at 15:53After additional day of research and testing I know for sure what causes my gallery to lag while scrolling the page on mobile device (only in landscape mode, when the gallery is split into two columns and right side uses js). Please, keep in mind that my phone is not the fastest device on the market, in fact I've used Nexus 4 for testing, so pretty old model.
To the point: Apparently there was a bug in Chrome (2012 - 2016) where the browser couldn't properly and dynamically handle scaling down high resolution images, resulting in massive lag while scrolling.
Source: https://bugs.chromium.org/p/chromium/issues/detail?id=92812
I do not know if this bug still exist but I guess it's safe to assume that UX while scrolling will depend on the computing power of your device. I was able to confirm that, after uploading some random low resolution image to my website. The lag was no longer a thing. Just take a look:
As you can see, even fast scrolling is not lagging. I know I've used exact same image all over the page but while testing same image in high-rez, the scrolling lag was instantly noticeable.
Another argument is the fact that http://buero-buero.org/ is not fully responsive. They are using 1:1 images and no matter what, the page won't scale them down. That would explain why scrolling on buero is so much smoother, even though they are using more complex and heavier multimedia along with modified scroll direction.
This is the key: scaling high-res images down. Now look, I know that during my test with low res images, they were still scalling to fit the container, (because I didn't bother to calcutlate the size of an image to prevent the scalling) but the scale of a manipulation was much lower, allowing my stone-age phone to handle the scrolling properly.
The last thing of course is the javascript function (called on window.onscroll
event) that only in combination with scaling high-rez images down, might generate scrolling lag - depending on the computing power of your device.
SUMMARY: It's not the modified scroll direction that is casuing the lag. It is the combination of the js and high-res images that were scaled down.
Since I want to use high-rez images, I guess I will just make my breakpoint trigger on 1024px so that people viewing my website on mobile devices will not experience scrolling lag.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install break-shot
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page