Tweet button console notice

javascript
tweetbutton

#1

I’m using the JavaScript tweet button in my website. When I visit the console, I see this notice that relates to it:

Consider using ‘dppx’ units, as in CSS ‘dpi’ means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual ‘dpi’ of a screen. In media query expression: (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)

Some notes about my usage:

I’m inserting the tweet button into the DOM in my AJAX callback and then calling twttr.widgets.load() as recommended here.


#2