web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    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

  • Fosco Profile Picture
    19 on at

    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.

  • Verified answer
    David Jennaway Profile Picture
    14,065 on at

    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

    Thank you, I agree.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 51 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans