Add async and charset attributes to the twitter external library script

Created on 1 March 2022, over 2 years ago
Updated 12 October 2024, about 1 month ago

Problem/Motivation

As per Twitter embed documentation, it's recommended to add the async and charset attributes while loading the twitter external library as follows:
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

Steps to reproduce

N/A

Proposed resolution

Add these attributes in media_entity_twitter.libraries.yml

Remaining tasks

To be reviewed

User interface changes

N/A

API changes

N/A

Data model changes

N/A

💬 Support request
Status

Needs work

Version

2.0

Component

Code

Created by

🇯🇴Jordan omar alahmed Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024