giscus / giscus

A comment system powered by GitHub Discussions. :octocat: :speech_balloon: :gem:
https://giscus.app
MIT License
8.08k stars 321 forks source link

Manually load using Swup #502

Closed IeuanWalker closed 2 years ago

IeuanWalker commented 2 years ago

Hi,

I've implemented this on my blog and it's great.

But I'm just implementing page transitions using Swup, this library highjacks the page's normal page lifecycle preventing giscus from working.

Is there a manual method that can be called to trigger it too load?

laymonage commented 2 years ago

I suppose you can copy the client script and modify it to add the event handlers for Swup.

Or you can also try the web component instead: https://github.com/giscus/giscus-component#using-the-web-component

IeuanWalker commented 2 years ago

thanks @laymonage, the web component works