Avatars Move During Pageload
-
Hi,
We’ve started using this plugin in a sidebar. Generally speaking it works really well – a far better user experience than using Twitter’s own embed code. However, i’ve noticed that when loading the page, the avatars associated with a tweet will move from slightly to the left (where they are cut off) to their proper position. This can be a little bit distracting and can skew metrics around pages having fully loaded.
This appears to be because ctf-scripts.js applies the ctf-super-narrow CSS class to the author’s avatar element. However, this script is only run after load – so the page will render, including the feed, then the script runs and applies the appropriate class for running in a narrow column, triggering an animation to move the avatar into the correct place.
Would it be possible to use CSS selectors to achieve this instead? It would also cut down on the download and execution time of ctf-scripts.js – which is by far the largest script on our WordPress install and has a pretty significant compile and execution time.
Hope that’s not too negative – I really like this plugin overall as it does allow us to deliver a timeline to a user without them having to make their own requests off to Twitter!
Many thanks.
The topic ‘Avatars Move During Pageload’ is closed to new replies.