PageSourceSearch

https://saii.kr/assets/controllers/comment_arrival_controller-f7ef7b49.js

js saii.kr collected 2026-10-06 03:44:56 UTC 582 bytes, 13 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3// A streamed comment lands at the end of a thread that is often below the
4// fold, so nothing would confirm the post went through. Bringing it into view
5// does that; the Orange Tint flash on .kb-comment-flash carries the rest.
6// DESIGN.md §15: reduce-motion collapses the scroll to instant.
7export default class extends Controller {
8  connect() {
9    const reduced = window.matchMedia("(prefers-reduced-motion: reduce)").matches
10
11    this.element.scrollIntoView({ block: "nearest", behavior: reduced ? "auto" : "smooth" })
12  }
13}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.