Take the 2-minute tour ×

everyone. When I get tweets count like this:

$.getJSON('http://urls.api.twitter.com/1/urls/count.json?url='+ url +'&callback=?',function(data){
    return data.count;

Google Chrome shows this warning:

Resource interpreted as Script but transferred with MIME type application/json.

I tried a lot of options, but can find right one. How can I remove this warning?

share|improve this question
Real programmers don't listen to warnings –  Eric May 7 '11 at 17:52
Holy wars. i like it. –  Rakot May 7 '11 at 17:59
add comment

1 Answer

up vote 0 down vote accepted

You can't. It's a JSONP request, so it has to be interpreted as a script. However, twitter is serving it up as JSON. Hence the MIME type mismatch.

share|improve this answer
add comment

Your Answer


