Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    managing code in huge single page apps

    What's isomorphic best practice on this? Using require.js?

    #2
    You may use view loader:http://www.smartclient.com/docs/8.3/a/b/c/go.html#search=viewloader

    or file loader:http://www.smartclient.com/docs/8.3/a/b/c/go.html#classMethod..FileLoader.loadJSFiles

    Comment


      #3
      Cool. Thanks.

      Comment


        #4
        Take a look at the SmartClient Architecture topic in the Reference. ViewLoader should generally not be used except for certain legacy architectures. FileLoader makes sense, but only for a very, very large application.

        Comment


          #5
          I'd be interested in an opinion on what a very large SPA would be. And what's a reasonable metric?

          For instance, say in one SPA I have 20 grids for table views and 20 crud forms. Would that be a very large app?

          Comment


            #6
            It's not number of components per se but size of code. There is little point of deferring download of code until it gets to at least around 25-50k, and that's a huge amount of stripped, compressed JavaScript - generally, the logic and declarations for 100s of screens.

            Comment


              #7
              I found the fileloader is only available in the development folder of the LGPL package. Does it mean we cannot use fileloader in production if we use LGPL package?

              Originally posted by Isomorphic View Post
              It's not number of components per se but size of code. There is little point of deferring download of code until it gets to at least around 25-50k, and that's a huge amount of stripped, compressed JavaScript - generally, the logic and declarations for 100s of screens.

              Comment


                #8
                Correct, FileLoader is part of the Network Performance Module that comes with Power Edition and above - see smartclient.com/product.

                Comment

                Working...
                X