-
jquery.pageless
Discontinued A jQuery plugin. As you scroll down you see more results coming back at you automatically.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Add paginate for images using will_paginate gem. Add this to the Gemfile.
Create jquery.pageless.js in app/javascript/packs with this code
If you want to check the code. You could do it here: Github Repository
require "net/http" url = "https://picsum.photos/v2/list?page=2&limit=100" resp = Net::HTTP.get_response(URI.parse(url)) data = JSON.parse(resp.body) data.each do |d| url = "https://picsum.photos/200/#{300+(rand(1..5)*20)}" #This will use random heights for the image p Image.where(author: d['author'], url: url).first_or_create end