Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Hello World WebGL build is 37 megs

Discussion in 'WebGL' started by root8888, Apr 21, 2015.

  1. root8888

    root8888

    Joined:
    Jul 25, 2013
    Posts:
    26
    It seems like at least some of this could be put in a shared JavaScript file that all Unity WebGL games could use. Then, that file could be hosted somewhere, the way the JQuery does, so that users aren't constantly downloading massive amounts of duplicate code. My 6mb Web Player game is now a 220mb WebGL game. There is no way I can handle those bandwidth costs. Having ~37 megs of it already in the users cache before they get to my game would be a game changer (pun intended) for me and very convenient for the end user.

    Also, shouldn't Unity minify the JS in the build process?
     
    Cascho01 likes this.
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
  3. vincentellis

    vincentellis

    Joined:
    Oct 21, 2013
    Posts:
    100
    Really? That's your support quality? "There are countless threads on this subject"?

    WebGL is completely unstable and unusable for production projects. There should be an official guide and proper support from Unity!
     
  4. root8888

    root8888

    Joined:
    Jul 25, 2013
    Posts:
    26
    To be fair, those docs were helpful. However, it still feels like there is tons of redundant code being downloaded across all Unity WegGL games. It just seems like a significant amount of code could be shared across applications.
     
  5. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666