Welcome to the #resistance.

Stimulus Connect is the release tracker and news aggregator for Stimulus and its surrounding ecosystem, including StimulusReflex and CableReady.

stimulus-prefetch 3.0.0

A Stimulus controller that prefetch in-viewport links.

guillaumebriday guillaumebriday

Published — 10 months ago
Updated — 3 days ago

prefetchresource-hintsstimulusstimulus-controllerstimulusjs

https://github.com/stimulus-components/stimulus-prefetch

https@github.com:stimulus-components/stimulus-prefetch

https://github.com/stimulus-components/stimulus-prefetch/issues

MIT

Controllers available: prefetch

Requires Stimulus 1.1.1

 

Installation

Shell
yarn add stimulus
yarn add stimulus-prefetch
index.js
import { Application } from 'stimulus'
import { definitionsFromContext } from 'stimulus/webpack-helpers'
import Prefetch from 'stimulus-prefetch'
const application = Application.start()
const context = require.context('controllers', true, /_controller.js$/)
application.load(definitionsFromContext(context))
application.register('prefetch', Prefetch)

Not using webpack? No problem.

Recently Updated

New Releases

Search by Tag

Swiperactioncableajaxanimated-numberapp-bridgeasynchronously-load-HTMLaudioautocompleteautosavebehaviorbindingbootstrapbulmacablecablereadycallbackscarouselcharacter-counterchartchart.jschatchattercheck-allcheckboxcheckbox-select-allcommandscommunicationcomponentscompositioncontent-loadercontrollerdata-bindingdatatablesdevelopmentdistance-from-nowdjangodomelementseventexistenceflatpickrformgetaddress.iogridheaderhelpersherokuheyhidehotkeysimageinputiosjavascriptjerksjestkeystrokelazylightboxlightgallerymapsmodalmorphdommp3on/offoverlaypaginationparticles.jsplaceholderpopoverprefetchprogress-barrailsrails-remoterails-ujsreactivereflexremoteresource-hintsresponsiverevealrollup-pluginrollup.jsrubyscroll-progressshopifyshortcutshowsliderssoundspeedssrstickystimulusstimulus-controllerstimulus-jsstimulus-reflexstimulus-togglestimulus.jsstimulus_reflexstimulusjsstimulusreflexstripestripe.jssurplusswiperjsswitchtabletabstailwindcsstestingtextareatime-agotoggletransitionsturbolinksujsuppercaseutilitesutilityuxvalidationwebdevwebsockets