cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to minimize Combined.js

tcoufal
Amethyst

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

Tags (2)
4 REPLIES 4

Re: How to minimize Combined.js

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

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....  

Re: How to minimize Combined.js

If you already did the job ( the App Mashups ) and it's big it's a pain, but if not, you can include ionic or other mobile HTML5 development platform on the same browser you embedded, and this will be better for future modifications ( also Offline support )

Re: How to minimize Combined.js

I will have to do some research, I am not yet familiar with Ionic platform. Thanks for the tip though..

TOmas

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.