Skip to Main Content
Customer Feedback

We love feedback from you on our products and the problems in your daily work that you would like us to solve. Please describe the challenge you're encountering and your desired outcome. Be as detailed as possible.

For technical issues or bugs please head to Support or our Developer Community. You can assign up to 20 votes in total. Thank you for your feedback.

Status explanation: 'Future Consideration' = Continuing to collect further feedback, not planned at this time. 'Investigating' = Prioritized for deeper customer and feasibility investigations ahead of planning development.

Categories Technical
Created by Guest
Created on Apr 5, 2022

Add option to render custom attributes when using ClientResources

There does not appear to be an option to render custom attributes when using ClientResources. One use case for this is that some resources require 'async' and 'defer' attribute in the script element — for example when using Google Maps and ReCaptcha:
https://developers.google.com/recaptcha/docs/invisible#programmatic_execute (see blue area)

https://developers.google.com/maps/documentation/javascript/overview#Loading_the_Maps_API


This feature has been requested a couple of times already on the forums:

https://world.optimizely.com/forum/developer-forum/Developer-to-developer/Thread-Container/2018/7/clientresources-requirescript---possible-to-use-async-or-defer/

https://world.optimizely.com/forum/developer-forum/CMS/Thread-Container/2017/3/add-async-and-defer-to-recaptcha-script-tag/