-
Notifications
You must be signed in to change notification settings - Fork 40
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
Using axLazyElement with differential builds #71
Comments
Hi @gs-smuthyam ! So differential build produces multiple JavaScript bundles right ? So out of the box you have to provide url for your element so you will point only to a single bundle. You could try to point to both and use Don't remember what is the exact exclusive If current state of things is not enough additional flag could be added. |
Hi @tomastrajan Thank you for the reply, will try adding both as you mentioned and update here. But the code appears to be loading them independently as I can see in the code |
@gs-smuthyam yes, but that also how angular differential loading works, right? It adds two sets of script tags to index.html and only one set gets executed based on browser feature support. The only question that remains is if the lib constructs mutually exclusive script tags for |
Hi @tomastrajan, Yeah the build constructs
So below are possible options to choose
Currently to solve our product flow, we are going ahead with this approach as a workaround. Check the browser type and load the appropriate script file. |
Hi @gs-smuthyam ! So currently the "problem" is that lib does NOT use How about this?
That way it's fully explicit and can be documented as a technique to use differential loading? |
Hi @tomastrajan, We can try out this. If we can make this work, this would be awesome. Indirectly it is same as the one proposed in previous comment ( being able to load multiple script files which user mentioned ) However, I'm afraid, this might not work especially imagine we are dealing with a dashboard where you have number of widgets in place and each of them are identified with unique I have tried with using multiple elements as you mentioned in modern browser, however ran into tag / unique name ambiguities. So ended up with evaluating and keeping only one |
Hi There,
This is more of a doubt rather an issue.
Does the lib support loading of a element which is built using differential build? If yes, is there an example which we can refer to ?
The text was updated successfully, but these errors were encountered: