All Projects → html-next → Vertical Collection

html-next / Vertical Collection

Licence: mit
Infinite Scroll and Occlusion at > 60FPS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vertical Collection

Web Vitals Module
Web Vitals: Essential module for a healthy Nuxt.js
Stars: ✭ 138 (-4.17%)
Mutual labels:  performance
Awesome Ember
A curated list of awesome Ember.js stuff like addons, articles, videos, gists and more.
Stars: ✭ 140 (-2.78%)
Mutual labels:  emberjs
Ember Model Validator
ember-cli addon adds validation support to your Ember-Data models.
Stars: ✭ 141 (-2.08%)
Mutual labels:  emberjs
Estimo
Evaluates how long the browser will execute your javascript code.
Stars: ✭ 138 (-4.17%)
Mutual labels:  performance
Scouter
Scouter is an open source APM (Application Performance Management) tool.
Stars: ✭ 1,792 (+1144.44%)
Mutual labels:  performance
Countwords
Playing with counting word frequencies (and performance) in various languages.
Stars: ✭ 136 (-5.56%)
Mutual labels:  performance
Sltbench
C++ benchmark tool. Practical, stable and fast performance testing framework.
Stars: ✭ 137 (-4.86%)
Mutual labels:  performance
Async
Easily run code asynchronously
Stars: ✭ 1,983 (+1277.08%)
Mutual labels:  performance
Fast React Server
[DEPRECATED] Use last versions of React and Node.js for better performance
Stars: ✭ 139 (-3.47%)
Mutual labels:  performance
Forge
High Performance Visualization
Stars: ✭ 140 (-2.78%)
Mutual labels:  performance
Foxify
The fast, easy to use & typescript ready web framework for Node.js
Stars: ✭ 138 (-4.17%)
Mutual labels:  performance
Fgprof
🚀 fgprof is a sampling Go profiler that allows you to analyze On-CPU as well as Off-CPU (e.g. I/O) time together.
Stars: ✭ 1,944 (+1250%)
Mutual labels:  performance
Ltecleanerfoss
The last Android cleaner you'll ever need!
Stars: ✭ 141 (-2.08%)
Mutual labels:  performance
Wperf
A simple HTTP load testing utility with detailed performance metrics.
Stars: ✭ 138 (-4.17%)
Mutual labels:  performance
Rust.js
Run your JavaScript apps backed by Rust
Stars: ✭ 141 (-2.08%)
Mutual labels:  performance
Fragment Cache
WordPress plugin for partial and async caching.
Stars: ✭ 135 (-6.25%)
Mutual labels:  performance
Ember Phoenix
Phoenix Framework integration and tooling for Ember.js apps
Stars: ✭ 140 (-2.78%)
Mutual labels:  emberjs
React Native Lazy Index
RAM bundle friendly, bundle-time generated `index.js`
Stars: ✭ 143 (-0.69%)
Mutual labels:  performance
Lithoxyl
Application instrumentation and logging, with a geological bent.
Stars: ✭ 141 (-2.08%)
Mutual labels:  performance
Js Search
JS Search is an efficient, client-side search library for JavaScript and JSON objects
Stars: ✭ 1,920 (+1233.33%)
Mutual labels:  performance

vertical-collection

Greenkeeper badge

Build Status

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.

TL;DR svelte render: the fewer things you need to render, the faster your renders will be.

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.

Install

ember install @html-next/vertical-collection

Usage

{{#vertical-collection
    items
    tagName='ul'
    estimateHeight=50
    staticHeight=false
    bufferSize=1
    renderAll=false
    renderFromLast=false
    idForFirstItem=idForFirstItem
    firstReached=(action firstReached)
    lastReached=(action lastReached)
    firstVisibleChanged=(action firstVisibleChanged)
    lastVisibleChanged=(action lastVisibleChanged)
     as |item i|}}
    <li>
      {{item.number}} {{i}}
    </li>
{{/vertical-collection}}

Actions

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

Support Matrix

vertical-collection version Supported Ember versions
^v1.0.0 v1.12.0 - v3.8.0
^v2.0.0 v2.8.0+

Support, Questions, Collaboration

Join the Ember community on Discord

Features

Infinite Scroll (bi-directional)

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.

Svelte Everything

If it can be trimmer, smoke-and-mirrors likes to trim it.

Status

Changelog

Build Status dependencies devDependency Status Coverage Status

Documentation

For updated documentation and demos see http://html-next.github.io/vertical-collection/

Contributing

  • Open an Issue for discussion first if you're unsure a feature/fix is wanted.
  • Branch off of master (default branch)
  • Use descriptive branch names (e.g. <type>/<short-description>)
  • PR against master (default branch).

Testing

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

License

This project is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].