Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@html-next/vertical-collection
Advanced tools
Changelog
Readme
Infinite Scroll and Occlusion at > 60FPS
vertical-collection
is an ember-addon
that is part of the smoke-and-mirrors
framework. It
focuses on improving initial and re-render performance in high-stress situations by providing a
component for performant lists and svelte renders
to match a core belief:
Don't render the universe, render the scene.
Your web page is a universe, your viewport is the scene. Much like you wouldn't expect a video game to render out-of-scene content, your application should smartly cull the content it doesn't need to care about. Trimming excess content lets the browser perform both initial renders and re-renders at far higher frame-rates, as the only content it needs to focus on for layout is the content the user can see.
vertical-collection
augments your existing app, it doesn't ask you to rewrite layouts or logic in order to use it.
It will try its best to allow you to keep the conventions, structures, and layouts you want.
ember install @html-next/vertical-collection
<VerticalCollection
@items={{items}}
@tagName="ul"
@estimateHeight={{50}}
@staticHeight={{false}}
@bufferSize={{1}}
@renderAll={{false}}
@renderFromLast={{false}}
@idForFirstItem={{idForFirstItem}}
@firstReached={{firstReachedCallback}}
@lastReached={{lastReachedCallback}}
@firstVisibleChanged={{firstVisibleChangedCallback}}
@lastVisibleChanged={{lastVisibleChangedCallback}}
as |item i|>
<li>
{{item.number}} {{i}}
</li>
</VerticalCollection>
firstReached
- Triggered when scroll reaches the first element in the collection
lastReached
- Triggered when scroll reaches the last element in the collection
firstVisibleChanged
- Triggered when the first element in the viewport changes
lastVisibleChanged
- Triggered when the last element in the viewport changes
vertical-collection version | Supported Ember versions | Supported Node versions |
---|---|---|
^v1.x.x | v1.12.0 - v3.8.x | ? |
^v2.x.x | v2.8.0 - v3.26.x | v12 - ? |
^v3.x.x | v2.18.0+ | v14+ |
^v4.x.x | v3.12.0+ | v14+ |
Join the Ember community on Discord
Infinite scroll that remains performant even for very long lists is easily achievable
with the vertical-collection
.
It works via a scrollable div or scrollable body.
If it can be trimmer, vertical-collection likes to trim it.
For updated documentation and demos see http://html-next.github.io/vertical-collection/
master
(default branch)<type>/<short-description>
)master
(default branch).Make sure you register the test waiter from ember-raf-scheduler. So ember-test-helpers
's wait
is aware of the scheduled updates.
An example can be found here
This project is licensed under the MIT License.
FAQs
infinite-scroll, done right. done.
The npm package @html-next/vertical-collection receives a total of 24,210 weekly downloads. As such, @html-next/vertical-collection popularity was classified as popular.
We found that @html-next/vertical-collection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.