npm + build tool vs import from CDN

  • benjamin.h-1370093017909956678

    Ben H

    10 days ago

    Hey folks, I got a small three.js animation working by importing from the CDN. This was easy in Nordcraft, because I can just put the import statements in the javascript. However, the three.js docs recommend using npm + a build tool for most use cases. If I understand correctly, this isn't possible in Nordcraft. Does this mean that Nordcraft apps with a lot of three.js will have subpar performance compared to frameworks that support npm? Fortunately for my use case this probably doesn't matter much, but I do want to have a proper understanding of the limitations of Nordcraft.
  • nocodeprocode-1370147969059393618

    NoCode ProCode

    10 days ago

    You can compile npm packages when the code files are build like a mini SDK and then host the JS on your own CDN or upload it on NPM to get a free CDN to then use that in Toddle. But the official CDN would be suggested. Even better would be using CSS, to better performance and a less heavy site