Twitter and Gists

Actually Twitter has no guilt in this… Today I found out why Gists from Github weren’t showing up in my posts. And because a lot my readers will care about sharing code, I share this with you.

In my posts the Gists hold the key of things I want to share so there is no point in posting without it.

A quick trail and error revealed the problem only occured while viewing the post from the url that was posted on twitter on a mobile device…

I have enabled the feature “Accelerated Mobile Pages (AMP)” on wordpress. Everybody want to “Improve the loading speed of your site on phones and tablets” right?
Well not if important information is left out.

If you post your blogs on wordpress.com here is the link to the setting: https://wordpress.com/settings/performance/

More information on AMP https://en.support.wordpress.com/amp-accelerated-mobile-pages/

Check how your page loads on mobile devices without it and if possible disable AMP. Because it is better to wait for information that few extra second(s) than show nothing really fast…

One little advise: Check the URL’s you have posted earlier if they end with ?amp=1 they won’t work anymore after you disable AMP.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.