Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

What is the best practice to use external UI components

Posted on by 15

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
    Fosco 15 on at
    RE: What is the best practice to use external UI components

    Thank you, I agree.

  • Verified answer
    David Jennaway Profile Picture
    David Jennaway 14,063 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
    Fosco 15 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
    David Jennaway 14,063 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans