PageSourceSearch

https://startupbase.io/js/pages/blog.js?v=1789501872189

js startupbase.io collected 2026-09-25 20:09:42 UTC 1,202 bytes, 1 lines download raw bytes

1"use strict";$(function(){const e=$("#blog-posts-wrapper"),t=$("#blog-posts-scroll-anchor"),s=$(".js-blog-posts-spinner");let n=!1,o=null;const a=e=>{const t=e.find(".js-blog-posts-state").last();return{hasMore:"true"===String(t.attr("data-has-more")),nextPage:parseInt(t.attr("data-next-page"),10)||0}};let r=e.length?a(e):{hasMore:!1,nextPage:0};const l=()=>{t.length&&(t.toggleClass("d-none",!r.hasMore),!r.hasMore&&o&&o.disconnect())},g=()=>{t.length&&!n&&r.hasMore&&r.nextPage&&(n=!0,s.removeClass("d-none"),$.get((e=>{const t=new URL(window.location.href);return t.searchParams.set("page",e),t.searchParams.set("async","1"),t.toString()})(r.nextPage),t=>{const s=$("<div>").html(t),n=s.find(".js-blog-post-item"),o=s.find(".js-blog-posts-state").last();n.length&&e.append(n),e.find(".js-blog-posts-state").remove(),o.length?(e.append(o),r=a(e)):r={hasMore:!1,nextPage:0}}).always(()=>{n=!1,s.addClass("d-none"),l()}))};t.length&&window.IntersectionObserver?(o=new IntersectionObserver(e=>{e[0]&&e[0].isIntersecting&&g()},{rootMargin:"300px 0px"}),o.observe(t[0]),l()):t.length&&($(window).on("scroll",()=>{!n&&r.hasMore&&$(window).scrollTop()+$(window).height()>=t.offset().top-240&&g()}),l())});

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.