PageSourceSearch

https://www.matthewrobertballard.com/assets/js/masonry.js?v=e49affc7bd2646f6acdad1dbe02c2359

js matthewrobertballard.com collected 2026-09-24 11:50:28 UTC 557 bytes, 22 lines download raw bytes

1document.addEventListener("DOMContentLoaded", () => {
2  const grid = document.querySelector(".grid");
3  if (!grid || typeof window.Masonry !== "function") {
4    return;
5  }
6
7  const masonry = new window.Masonry(grid, {
8    gutter: 10,
9    horizontalOrder: true,
10    itemSelector: ".grid-item",
11  });
12
13  if (typeof window.imagesLoaded === "function") {
14    const tracker = window.imagesLoaded(grid);
15    if (tracker && typeof tracker.on === "function") {
16      tracker.on("progress", () => masonry.layout());
17      return;
18    }
19  }
20
21  masonry.layout();
22});

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.