Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

What is the best practice to use external UI components

(0) ShareShare
ReportReport
Posted on by 19

Hello,

I ask myself what is the best practice for using external JavaScript UI components on a webpage.

Should all JavaScripts / CSS / TTF and so on be packed into one solution or is it better to make them accessible on a web server?

Best regards

  • Fosco Profile Picture
    19 on at
    RE: What is the best practice to use external UI components

    Thank you, I agree.

  • Verified answer
    David Jennaway Profile Picture
    14,065 on at
    RE: What is the best practice to use external UI components

    If these are external components that don't change (or would get a different version and url if they do change), then the deployment point is not an issue. Then it depends on whether you have cross-site issues. Providing that you can get around any cross-site issues, then in this scenario it would make sense to reference files on an external server

  • Fosco Profile Picture
    19 on at
    RE: What is the best practice to use external UI components

    I understand what you mean and I would do it the same way.

    But what is with librarys like jqwidgets. I think they have quite a few files that aren't necessarily small either.

    This would inflate the solution accordingly.

    And Breaking changes are not to be expected for such libraries.

  • David Jennaway Profile Picture
    14,065 on at
    RE: What is the best practice to use external UI components

    To me the 2 main factors are:

    1. Deployment between environments. With web resources in a solution, it is easy to deploy any changes amongst with CRM components. If you host files on a separate server, you'd may need to change the links when deploying between environments, and there's no simple way to automate this
    2. If hosting on a separate web server, you will need to address cross-site issues, whereas if all components are web resources, then they will all be in the same site and domain

    Both of these would lead to be having all code in CRM as web components, and not on a separate server

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#2
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 32 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans