Reputation: 406
What I want to do is displaying a website (a Portal one) within Worklight. So I'm hardcoding the URL in the mainFile
tag:
<mainFile>http://example.com/page.html</mainFile>
Now I need to download the resources from this page (JS and CSS files), store them locally and replace the absolute URLs of the page with WorkLight URLs in order to speed up the page loading. How could I do this?
Upvotes: 0
Views: 38
Reputation: 44516
You cannot change the mainFile
(the "index.html") value during runtime, as it is set in application-descriptor.xml which is a server-side file that the build process uses.
I would also question the flow. If you want to speed up application loading, hinting that by using Portal the loading is slow, why use Portal to begin with? Place your resources locally in the application.
Upvotes: 1