Loading plugins on demand - Forum

Forum Navigation
You need to log in to create posts and topics.

Loading plugins on demand

Hi..

How we can load a plugin on demand and not as the page is loaded ?

I use the NeoServey plugin and is 1.7mb. Is been used occasionally on my platform, so i want to be able to load it only by calling it from a button.

Any ideas ?

@smartmedia the plugins are automatically included in your final compiled app only if they are utilized in your project. This process is seamless.
If you mean, loading them into VisualNEO Web software, you can use Options > Add/Remove Plugins menu option whenever neccesary.
Am I understanding you correctly?

Hi @luishp

I work Google Pagespeed insights in order to boost the numbers of loading the page and so on. One of the issues is the loading time who is 5,5 seconds. One of the reasons of the delay is the multiple java scripts that are loaded. And in order to reduce that time i want to be able to load the survey2.jquery.js manualy only when is needed. There is any way to load the javacripts (plugin) manual and not loading page ?

Hi @smartmedia. You can always comment the affected <script> line in the compiled index.html file and use LoadJS instead to load the external JavaScript file on demand. Alternatively you can try adding the defer or async atributes to the <script> tag, but I'm not sure if it will help you very much to cut download times.
Additionally you can also try to enable server side compression to dramatically increase download times.

I hope it helps.

smartmedia has reacted to this post.
smartmedia