Portal performance - why is the same file getting loaded 6 times and taking 12 seconds?
The compression helped shave off about 2 seconds--I am transferring < 700k instead of 8mb. However, even when the file is loaded from cache, it still sits there for 12+ seconds of wait time. This is a new phenomenon. I am running 8.1 in the environment pictured here.
- Is anyone else seeing this?
- Does anyone know what is causing it?
- Does anyone know how to fix it? 30+ seconds is a long time to wait for a ticket to open.
Best Answers
-
john_doyle Cireson Support Ninja IT Monkey ✭✭✭✭@james_kleinschnitz You can see why this is happening if you look at the definition of the editor in the controller.
targetEle.kendoEditor({<br>...<br> },<br> stylesheets: [<br> "/Content/Styles/cireson.main.min.css"<br> ]<br> });
Seeing as that css file is always loaded by the portal, wouldn't it be better to do what Kendo suggest hereTo avoid the default content styles demonstrated in the previous example, remove or override them after the Editor is initialized by executing the following code.
var editor = $("#EditorID").data("kendoEditor"); var styleTag = editor.body.parentNode.getElementsByTagName("style")[0]; styleTag.parentNode.removeChild(styleTag<span>);</span>
5 -
john_doyle Cireson Support Ninja IT Monkey ✭✭✭✭@james_kleinschnitz A bit of testing revealed that it did not work. However, what did work was this:
stylesheets: [<br> "/Content/Styles/cireson.main.min.css?v="+session.staticFileVersion<br> ]
5 -
james_kleinschnitz Cireson Dev, Product Owner Advanced IT Monkey ✭✭✭I will have the engineering team look at this in an upcoming release.
Thanks1
Answers
Are you sure that you have removed all your customizations? I ask this because when we reference static assets like js and css files we always append a version number in order to force the browser to recache these files. The cireson.main.min.css file that is getting loaded multiple times does not have a version number, based on your screenshot.
Thanks
When I removed customizations, I just commented the custom.js and custom.css, but did not change the ticket form JSON files. If I rename/replace the whole CustomSpace folder, this no longer occurs.
So I will re-frame my question a bit more appropriately, now:
Is it really necessary to reload the same css file for each Kendo control that uses it? I realize this might be more of a question for Telerik/Progress, but it also might not be.
Seeing as that css file is always loaded by the portal, wouldn't it be better to do what Kendo suggest here
To avoid the default content styles demonstrated in the previous example, remove or override them after the Editor is initialized by executing the following code.
Thanks