Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Any way to make custom css load first on a form?

Posted on by Microsoft Employee

Hello, I have some custom css (I know it is not supported?) which overlays after the (customised contact) form loads.

Does anybody know any way of removing this short lag between the form loading and the css overlay occurring?

e.g. anyway of ensuring the css takes precedence?

Many thanks,

- Seamus

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Any way to make custom css load first on a form?

    Thanks Aric for providing these links - these are what I am already using but when I implement them there is a delay between the base form loading and the new css overlaying.

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Any way to make custom css load first on a form?

    Hi Seamus,

    Not sure if this helps, but take a look at the following posts:

    snataw.wordpress.com/.../prettify-entity-form-crm-online

    anterocrm.com/microsoft-dynamics-crm-cascading-style-sheets-part2

    Hope one of these solutions works for you.

    Remember that these are unsupported customizations as they use the dom.

  • Seamus Profile Picture
    Seamus 1,575 on at
    RE: Any way to make custom css load first on a form?

    Thanks David  - yes it is onPremise CRM2013. On a custom contact from where would I acess the html header? I'm already loading the css through a javascript onLoad function but there is a noticeable delay in the overlay.

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Any way to make custom css load first on a form?

    I don't think there is a viable way to do this. If you have CRM OnPremise, you might be able to create an httphandler to add a link to the css in the html header. This would get it loaded before CRM starts loading web resources, but it would also be unsupported, and risks breaking things on any CRM upgrade

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans