4 Replies Latest reply on Jul 22, 2016 6:17 AM by tcoufal RSS
    tcoufal Communicator

    How to minimize Combined.js

    Hi Guys,

     

    I have one rather complicated request.

     

    There is this Combined.7.1..XXXXXXX...js file. It is rather large, almost 5MB. We have developed a mobile App which uses phone's native browser, unfortunately it does not cash anything. This makes loading of even the simplest mashup very slow.

     

    Is there a way how to minimize that javascript file?

     

    It is possible to set one mashup for desktop devices and other (simple one) to mobile devices, but it always loads the same file.

    Nice would be to have an option which I could say which mashup is used for desktop and which one for mobile devices. (with possibility to choose specific/optimized version of js.files).

     

    What does it do anyway? It is almost 100k lines. I think it solves the browser uncompatibility anything else? (communication between platform and Widgets??)

     

    Thanks for any ideas.

     

    Tomas

      • Re: How to minimize Combined.js
        carlesc Ninja

        Hi Tomas,

         

        For now it's not possible, you have to eat it all. Combined.js has everything, all the widgets that comes with the platform ( either if you use it or not ), and a lot of history behind the scenes ( as it has more than 5 years ), hard to touch it without breaking anything.

         

        We had developed an HTML5 mobile App with ionic platform, using just TW REST API, it's fast, efficient and mobile friendly not like TW Mashups. TW Mashups are not designed to be well used on mobile, building mobile Apps with TW Mashups it's not a good approach.

         

        PTC has another product to build mobile Apps using TW, it was a project called ThingX for which we had really good expectations but now it's on Vuforia Studio, they moved away from TW platform but it's totally integrated with TW. I don't know if it's yet officially released or not....

         

        Best Regards,

        Carles.

          • Re: How to minimize Combined.js
            tcoufal Communicator

            Hi Carles,

             

            I was actually invited to ThingX beta program. Couldnt participate for time reasons though.

             

            Since we have had to move our AugmentedReality projects we could not wait for it. So we are using Vuforia+Unity+TW. We have made a simple WebBrowser which is seamlessly called from within the AR App. Now we have added a general barcode scanner which contains cyphered URL to specific mashups and this combined.js slows the whole UX down.

             

            Anyhow thanks for Info.

            I am working on a script, which would delete all comments from that JS file, we will see how small it gets....