From 1320dae35246ecd87715f46d16787844e3dd0b87 Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Thu, 3 Apr 2014 08:17:23 +0200 Subject: [PATCH] Add FAQ section in README with a Disqus use case --- README.md | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/README.md b/README.md index 1d1ac9e..88a052b 100644 --- a/README.md +++ b/README.md @@ -472,6 +472,69 @@ document.addEventListener("pjax:success", whenContainerReady) --- +## FAQ + +### Q: Disqus doesn't work anymore, how can I fix that ? + +A: There is a few things you need to do: +- wrap your disqus snippet into a dom element that you will add to the `selector` +arra (or just wrap it with class="js-Pjax") & be sure to have a least the empty +wrapper on each page (to avoid differences of DOM between pages) +- edit your disqus snippet like the one below + +#### Disqus snippet before pjax integration + +```html + +``` + +#### Disqus snippet after Pjax integration + +```html +
+ + + +
+``` + +**Note: The thing you need to understand is that Pjax handle inline `