PageSourceSearch

https://assets.imuskoka.com/assets/controllers/search_results_load…fe80ce2222963152ab269368e7348cd98961fd26.js

js imuskoka.com collected 2026-10-05 22:25:12 UTC 452 bytes, 18 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3export default class extends Controller {
4  static values = { url: String }
5
6  connect() {
7    // fire once
8    if (this.element.dataset.loaded) return
9    this.element.dataset.loaded = "1"
10
11    fetch(this.urlValue, {
12      headers: { Accept: "text/vnd.turbo-stream.html" },
13      credentials: "same-origin",
14    })
15      .then(r => r.text())
16      .then(html => Turbo.renderStreamMessage(html))
17  }
18};

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.