Toolverse
All skills

webf-async-rendering

by openwebf

Understand and work with WebF's async rendering model - handle onscreen/offscreen events and element measurements correctly. Use when getBoundingClientRect returns zeros, computed styles are incorrect, measurements fail, or elements don't layout as expected.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
openwebf
Category
Testing
Views
2

About this skill

Understand and work with WebF's async rendering model - handle onscreen/offscreen events and element measurements correctly. Use when getBoundingClientRect returns zeros, computed styles are incorrect, measurements fail, or elements don't layout as expected.

How to use

  1. Zainstaluj skill webf-async-rendering z repozytorium openwebf. Skill jest dokumentacją i wzorcami kodu — nie wymaga osobnego pakietu npm, ale powinieneś mieć zainstalowane WebF w swoim projekcie (Vite, npm, React/Vue/Svelte).

  2. Zrozum fundamentalną różnicę: w przeglądarkach getBoundingClientRect() zwraca wymiary natychmiast po dodaniu elementu do DOM, w WebF zwraca zera, bo layout jeszcze się nie wykonał. Zmiana DOM jest asynchroniczna — elementy istnieją w drzewie DOM, ale nie zostały jeszcze zmierzone i umieszczone.

  3. Zamiast czytać wymiary od razu po modyfikacji DOM, czekaj na następną klatkę renderowania. Użyj requestAnimationFrame() lub handleuj zdarzenia onscreen/offscreen, które WebF emituje po wykonaniu layoutu.

  4. Jeśli napotkasz problemy z getBoundingClientRect() zwracającym zera, computed styles zwracającymi nieprawidłowe wartości lub elementy nie rozmieszczającymi się jak oczekiwano — przyczyna leży w asynchronicznym modelu. Przenieś logikę pomiaru na moment po renderowaniu, nie zaraz po zmianie DOM.

  5. Pamiętaj, że asynchroniczny rendering eliminuje layout thrashing i nie wymaga optymizacji z DocumentFragment — WebF automatycznie batchuje zmiany. Twój kod będzie prostszy i szybszy niż w przeglądarce.

Related skills

langchain

by zechenzhangAGI

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering

Testing
21123

playwright-browser-automation

by lackeyjb

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test

Testing
13130

webapp-testing

by anthropics

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

Testing
130255

playwright-cli

by microsoft

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

Testing
45103

langgraph-docs

by langchain-ai

Use this skill for requests related to LangGraph in order to fetch relevant documentation to provide accurate, up-to-date guidance.

Testing
23127

hono

by openstatusHQ

Efficiently develop Hono applications using Hono CLI. Supports documentation search, API reference lookup, request testing, and bundle optimization.

Testing
1257