-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enabled "manifestFirst" doesn't load resources defined in sap.ui5 #1398
Comments
I've created a internal incident 1770165096. You can check its status on GitHub. |
Your This is why the file is loaded twice when using |
@matz3 Ahh, I see. Thanks for pointing this out! I didn't see the connection between sap.app/id and the component name. Anyhow, I should have added the id anyway since it's marked as mandatory. |
@matz3 Sorry, I overlooked that even after adding all the mandatory attributes (such as |
@boghyon you are right. The file is loaded twice in this case. The first request is triggered via the The second request is triggered via The reason why there are two requests is because this scenario has been optimized for the productive use where the
To create the Here is a sample app using that task: |
@matz3 I see. Thanks for the clarification. It would be nice if the behavior you described is in the doc somewhere where |
Just to note down for other readers what I observed: Since 1.54.0 (and without Component-preload.js), the manifest file is not loaded twice anymore but only when there was a
If a URL is given instead ( |
@boghyon that's right. We've optimized the manifest loading internally to share it with the ComponentMetadata class.
Yes, this is my design as the manifest loaded from a different location could have a different content than the one loaded from the default location. So we only share it in case the resulting URL would be the same. |
OpenUI5 version: All
URL (minimal example if possible): https://embed.plnkr.co/4mURwe/
(Update 2017.04.22: Added mandatory attributes in the app descriptor)
Steps to reproduce the problem:
resources
in thesap.ui5
namespace of app descriptormanifestFirst
either in the bootstrap configuration or in the component factorymanifest: "json"
from the component metadata in order to avoid loading the file twice.What is the expected result?
CSS and JS files are loaded and applied.
What happens instead?
Requests for those files aren't even sent.
Any other information? (attach screenshot if possible)
I couldn't find any mention about this behavior in the documentation. The CSS and JS resources gets loaded when
manifest: "json"
is defined in the component metadata. But this will send another request tomanifest.json
even if the descriptor was loaded already throughmanifestFirst
.The text was updated successfully, but these errors were encountered: