- Home ›
- Developers ›
- Follow Button Optimization
Follow Button Optimization
For larger sites that are using multiple buttons per page we tend them to recommend that they use the IFrame version of the Follow Button.
The follow button can be optimised in the same way the standard tweet button can. This is achieved by not using the follow.js Javascript, but instead to use the iFrame directly.
<iframe src="http://api.tweetmeme.com/v2/follow.js?screen_name=dtsn&style=<type>" frameborder="0" height="<height>" width="<width>"></iframe>
The height and widths of the button for these iFrames are listed below please note that you do not need to define style for the normal button but you do need to define the height & width still:
| Type | Height | Width |
|---|---|---|
| normal | 30 | 85 |
| compact | 16 | 70 |
| square | * | * |
*The square buttons height and widths should be set to the same as the parameters.


(20 votes, average: 4.10 out of 5)