littlefoot js is a "fancy" footnote replacement plugin. In the docs, its author says this is how it can be used with Gatsby:
import littlefoot from 'littlefoot'
import 'littlefoot/dist/littlefoot.css'
export function onRouteUpdate() {
littlefoot() // Pass any littlefoot settings here.
}
I'm trying to do the same thing with a Nuxt.js app, but without success. As far as I know, this is one possible way to do it in a single component:
<script>
import littlefoot from 'littlefoot'
// ...
export default {
// ...
mounted() {
littlefoot()
}
}
</script>
But that isn't working, the web page simply refuses to load (infinite load) without any error message.