Question on JS files

User 82b20b535e

31-07-2015 13:48:45

Hi,


Marvin JS version:  15.7.13


I got the latest Marvin JS and wanted to implement to our project. I found that there are many duplicate/legacy js files in the zipped filed and would need your guidance.  Please advise.


In the gui/lib folder there are 3 promise js files with different versions


In the JS folder, I see the github.js, webservice.js and many more which I do not use those functionalities.


I need to extract all these to the production server and I want to include only the needed files.


May I request to please guide me the files needed to move to production.


 


Thanks

ChemAxon 7c2d26e5cf

04-08-2015 08:24:21

The essential files are located in the gui subfolder in the Marvin JS package. Furthermore, editor.html is required since it is an entry point for the editor (to embed the editor in an iframe). Other files are optional in the package (related to the documentation and online examples).


Indeed, there is 3 promise implementation in the package. Current version uses promise-1.0.0.min.js. Other promise implementations are bundled for backward compatibility: examples in earlier releases can refer any of them.


We haven't find github.js in current package.


Useful optional files:


webservices.js - predefined configuration for setting webservices


marvinjslauncher.js - helper utility to access the sketcher instance in your example.


https://marvinjs-demo.chemaxon.com/latest/docs/dev/embed.html