Does Twitter's URL crawler execute JavaScript?
Asked Answered
F

1

6

When Twitter scrapes URLs to render Twitter cards (configured via meta tags), will Twitter first execute your JavaScript or do they require that these tags are sent directly from the server?

Reason I ask is it's 2016 so I'm developing a single page application. No matter what URL you request, I'll return /index.html which fetches my JS and dynamically loads whichever page you requested (including meta tags) on the client.

I know Google will run your JS, but does Twitter?

Foeticide answered 9/3, 2016 at 3:18 Comment(0)
F
5

After using Twitter's Card Validator (https://cards-dev.twitter.com/validator), it looks like the answer is sadly no because I just tested this out in production and they don't seem to detect the meta tags I add dynamically.

Foeticide answered 9/3, 2016 at 3:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.