-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Tweet count parameters from Tweet button #2747
Comments
Thanks @niallkennedy! Per original post, "next month" so something we can account for in 3.8 hopefully and start setting user expectations in support documentation. cc @aduth / IO |
This problem is happening already. I also see Failed to load resource: the server responded with a status of 404 (Not Found) I assume this is related. Workaround
|
@bobbingwide Here is another workaround: |
That's a different issue. It will be fixed in 3.7.1. See #2698 for more details |
Hi Jeremy, I like the alternative workaround and thanks for the info on the widgets issue |
I'm seeing this problem as well (on WordPress VIP). Just deployed the filter workaround. |
@niallkennedy - Do y'all have a firm date for killing the API? |
It's not obvious to me that the problems noted in this thread are related to the original issue. I'd expect that once the API is removed, it would still return a response promptly (even a 404) and not hang. From what I can tell, the logic that exists currently in Jetpack and WordPress.com will continue to work as expected even after the API is dropped, though we should certainly do our due diligence to remove the unnecessary requests and button query parameters. @paulschreiber, can you provide more detail about the problem you were observing? |
Here's the JS in question: jQuery.each([ https_url, http_url ], function( i, urlVariant ) {
requests.twitter.push({
dataType: 'jsonp',
data: { url: urlVariant },
url: 'https://cdn.api.twitter.com/1/urls/count.json';,
success: jQuery.proxy( WPCOMSharing.update_twitter_count, null, urlVariant )
});
} ); This URL only loads only intermittently. It likely depends on which CDN POP you hit. When it didn't load cleanly, the browser would hang (presumably until the 300sec TCP timeout), which would block the loading of other scripts/execution of other activities. Twitter is removing this API endpoint. As this endpoint was never officially supported, unlike a regular API removal, it might not behave nicely (i.e. 404, 403 error). In this case, it's failing to load entirely, as Jetpack should remove this code ASAP before you get flooded with complaints. |
See #2787 for removal of share count requests. |
Reopening b/c #2787 only removed the counts from unofficial buttons. Still need to remove the counturl param (at least) from the official button to fully clean up. |
…count API deprcation See #2747 for more details.
done in #2979 |
The Tweet button's new visual design is now deployed. The new design removes the share count component. Sites with an older version of Sharedaddy code using the official buttons may see what appears to be extra padding due to the previous iframe dimensions. |
Twitter announced a new design for the Tweet button and plans to drop Tweet count. This issue tracks an announced change not yet reflected in live code.
The new Tweet button dimensions for Sharedaddy smart buttons will be similar to an existing button configured with the
count=none
display option. Thecount
andcounturl
query parameters in the iframe will have no effect once the new design is live.The
cdn.api.twitter.com/1/urls/count.json
endpoint used by Twitter's widgets JavaScript will no longer function as part of this change, causingWPCOMSharing.update_twitter_count
to never update.The text was updated successfully, but these errors were encountered: