PricingBlog

Question Toddle Div/Plugin

  • victorparrabogota-1175303243669196912

    victorparra-bogota

    2 years ago

    Hi group I have 2 questions

    1)I see that in toddle you use a lot of divs does that affect the performance of the app.
    2) Is it mandatory to install the toddle plugin, what is it for? when the application is in production this plugin is necessary for the user? thank you very much.
  • victoruxui-1175307242627682354

    Victor Giron

    2 years ago

    1. You can change the HTML tag on the attributes section of your element
    2. The plugin is just for testing done n the editor. In production the user doesn’t need the plugin
    👀1
  • lucasg-1175310671643148319

    Lucas G

    2 years ago

    Having a large DOM (ie. a lot of divs) can indeed affect performance but it's typically not a huge concern. You really have to be using very liberally or being very inefficient with your build for it to matter
    👀1
  • It's a concern with other tools because they add a lot of divs/bloat on their own without the user even doing anything but toddle keeps a fairly clean html output overall so it likely won't be a concern for most
  • lucasg-1175311198489681961

    Lucas G

    2 years ago

    And as victor mentioned, the plugin is used for testing as we build. Specifically to help the editor track authentication, like when connecting to a db or api
  • andreasmoller-1175367489438371860

    Andreas Møller

    2 years ago

    I would recommend not adding any unnecessary divs or other html tags, but don’t worry too much about it.

    In toddle we show you all the elements that the browser will see. If you inspect the html output of other nocode apps they tend to add a lot more docs, you just don’t see them in the editor.
    👀1
  • lucasg-1175934896645087335

    Lucas G

    2 years ago

    This is one of my favourite things about toddle actually
    👀1
  • andreasmoller-1175935455062147122

    Andreas Møller

    2 years ago

    Yes I am very happy we made that decision, but it does also add to the learning curve a bit 🙂
    💯1