fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Broken Css on first load / after clear cache load

Open holysnake91 opened this issue 9 years ago • 6 comments

Bug Report

  • Package version(s): 4.8.3
  • Browser and OS versions: Google chrome

Describe the issue:

I using Create-React-App-Typescript with office-ui-fabric-react in SharePoint Online, if i static link the generated reactjs file the item was render ok. But when i dynamically add the generated reactjs file, there is the posibility css of component was not generate on first load/after clear cache.

For example facepile, i saw the persona control will have this class "imageIsCover_764b0dfc" If the css is broken, this css class content was not generated in html elements.

Actual behavior:

On first load / after clear cache, css of office-ui-fabric-react broken. Only happen for those js that dynamic add. The css content was not generated image

Expected behavior:

The css content was generated. image image

holysnake91 avatar Jun 20 '17 06:06 holysnake91

Same for me. Same version of the package. Tested for IE, EDGE, Safari: OK First load in Firefox -> dynamic loadStyles doesn't seem to work correctly (sometimes) First load in Chrome -> dynamic loadStyles doesn't seem to work correctly (more often)

BigEaseGueldi avatar Jun 20 '17 12:06 BigEaseGueldi

I test with IE,EDGE,FireFox,Chrome all on first load the css was broken. Addition info, when open browser devtool with disable http cache and reload the page will triger this as well.

holysnake91 avatar Jun 21 '17 02:06 holysnake91

Any one have a better way to load the reactjs file dynamically ?

holysnake91 avatar Jun 29 '17 02:06 holysnake91

Upgrade to the latest version 4.13.2 but still same issue. happen more frequently on panel componet

working panel image

not working image

holysnake91 avatar Jul 03 '17 06:07 holysnake91

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!

stale[bot] avatar Apr 11 '18 11:04 stale[bot]

This issue has been automatically closed because it has not had recent activity after being marked as stale. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to Fabric React! Why am I receiving this notification?

stale[bot] avatar May 18 '18 19:05 stale[bot]