-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internet Explorer 11 performance with SPFx #1438
Comments
Thank you for your feedbacks. for the Internet Explorer issue, can you please add an Network (F12) trace here? we would need to understand more what's going on here before providing some assumptions |
Hi @lucaband Few observations:
|
@emadaliny you trace shows that you're loading files from SharePoint. Since it's a static asset, have you properly configured the Blob Cache in your farm? Alternatively, have you considered hosting your files on a different server, where you would have a full control of the response headers and could set far-future expiration headers? I suspect, that the reason you're seeing cache hits has to do with the configuration of your Farm rather than with SPFx. |
Thanks @waldekmastykarz .. Yes, Blob Cache is configured in the farm. |
Could it be that this is how IE11 dev tools show files loaded from cache? Have you tried using Fiddler to see which requests exactly are sent over the wire? |
In Fiddler, there is no traffic send through for the cached JS files. IE 11 is caching as expected but the slowness resulted by too many cached requests for JS dependencies. |
Would it be fair to rephrase it to: you experience a slow page because IE is loading too many JavaScript scripts (cached or not)? |
I am trying to improve performance of SPFx webparts in IE 11, I am suspecting that having too many cached JavaScript script is contributing to the issue ( not sure though if this is the root cause of the slowness ). |
What I'm not sure about is if it would help. I've never heard of a case where a cache hit would cause a noticeable performance hit. I'd suspect the amount of script you're loading to be the culprit. |
Thanks @waldekmastykarz I have tested the following but didn't have much better performance in IE 11. Reducing the number of SPFx webparts in the page is the only way to make it load faster in IE 11 ( it's a pile of hay :) ) .. but that would be lots of re-development. |
So it could be a difference between how IE and Chrome show cache requests after all. It's no secret that IE has difficulties with running script-heavy pages. As you said: reducing the number of scripts would potentially help you improve the performance of your page, but it might not even be viable, depending on what you want to achieve. |
I found that whenever there is a SPFX WebPart in a page, there is telemetry from AppInsights (requests to "https://dc.services.visualstudio.com/v2/track" and "https://browser.pipe.aria.microsoft.com/Collector/3.0/") and some calls are really slow in my environments. Could it hinder the performance in IE and is there a way to disable it? Edit : A part of this was caused by our usage of an old version of pnp properties term picker (1.3 specifically) |
I have found that IE11 especially with Windows 7 is basically unusable with spfx. Even if you micromanage your bundle sizes it’s still just too much js for it to handle. |
I'm using IE11 on windows 7 with spfx regularly with now issues. could it
be your network?
…On Wed, Jun 6, 2018 at 6:41 PM, Thomas White ***@***.***> wrote:
I have found that IE11 especially with Windows 7 is basically unusable
with spfx. Even if you micromanage your bundle sizes it’s still just too
much js for it to handle.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1438 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACTRnBW_zQ_cx6LgaP8YcHtHxX_bgSfQks5t6FqHgaJpZM4SeL2x>
.
|
For IE11, since we are using publishing sites, we ended up externalizing our CSS in a separate file and went from 6 webparts in a page to 2 (we merge 3 webparts into 1 and moved a webpart code out of spfx) and it made a huge difference. |
@russgove This issue with spfx is slowness, the webparts are working as expected total page load time is much slower compared to Edge or Chrome. |
I have the same issue with a solution i just developed for a customer. This is running on SharePoint Online. This is a very news heavy intranet with a lot of pictures and custom SPFX webparts and when loaded in IE 11 it takes about 6 seconds to load whereas chrome loads it in 2 seconds. I believe a lot this could be mitigated, if it was possible to specify some sort of order in which the webparts was loaded. Mostly all the webparts and pictures in the bottom of the page waaaaay down are loaded first. |
As IE11 is no longer supported in SharePoint Online, we are closing this for cleaning the issue backlog. |
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues |
Internet Explorer 11 is still the standard operating environment for many companies which makes the pages with multiple SPFx webparts really slow.
Each SPFx webpart by design adds at least 4 cached http requests ( webpart bundle JS file + few other JS libraries like jQuery, Angular & PnP JS ) + Rest/CSOM API for the webpart logic.
While all modern browsers can handle that peacefully, IE 11 can't!
For a page with 6 SPFx webparts ( ideal home page with multiple tiles ) the resulting number of requests is around 40 ( mostly from browser cache ), again for all modern browsers this loads in less than 2 seconds but for IE11, it takes around 5 seconds, which is not acceptable.
Category
Expected or Desired Behavior
An easy way to improve SPFx page load in IE 11.
Observed Behavior
1 - It is not possible to bundle SPFx js files for v1.1 ( on premise SharePoint 2016 ).
2 - While it's possible to bundle Vendor JS files, but how to configure SPFx to load vendors JS files from common bundle rather than doing separate cached http request for each library.
The text was updated successfully, but these errors were encountered: