If You Use Disqus, There Might Be Issues with External Site Links When Displaying Pages in the iOS Twitter App
2016-09-14 09:50 (9 years ago)

If you are using Disqus for your blog's comment system
When viewing the page in an iOS Twitter client app and clicking on a link to an external site, it resulted in a blank page without transitioning properly.
Initially, I couldn't figure out the cause, but it seemed that the Disqus JS was the problem. (When Disqus JS is loaded, it attaches strange methods to the link event handlers)
Since I wanted to continue using Disqus, I decided to disable Disqus JS only when accessed from the Twitter client.
You can determine if the client is Twitter by checking the User-Agent. Here's a simple way to do it:
var isTwitter = navigator.userAgent.match(/Twitter/);
Currently unrated
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.
We look forward to discussing your development needs.