react-async-script-loader icon indicating copy to clipboard operation
react-async-script-loader copied to clipboard

Attributes for script element

Open vishalraj82 opened this issue 8 years ago • 2 comments

Some of the third party social libraries require locale attribute to be set which would then set the locale for the widget. Can we have a provision to add attributes to the scripts before it is added to the DOM.

vishalraj82 avatar Oct 11 '17 11:10 vishalraj82

@vishalraj82 Not very familiar with that, any example please?

leozdgao avatar Nov 02 '17 15:11 leozdgao

My use case is including the javascript libraries to include the social media icons on my page. You can have a look at the documentation links below:

  • https://developers.google.com/+/web/api/javascript
  • https://developer.linkedin.com/docs/getting-started-js-sdk
  • https://dev.twitter.com/web/javascript/loading

vishalraj82 avatar Nov 05 '17 04:11 vishalraj82