Multiple Browser Widgets

Peter TB Brett peter.brett at livecode.com
Tue Sep 27 18:48:12 EDT 2016



On 27/09/2016 23:11, Sannyasin Brahmanathaswami wrote:
> Given a framework with many stacks and many cards in those stacks
>
> if you instantiate the browser widget in 10 different stacks on 20
> different cards, is this increasing the size of the frame work
>
> 1 Widget X 10 X 20 = 200 times
>
> or is the "weight" of the widget 1X only with each instance just
> being a alt view of that one object?
>
> I suspect the latter, because as I keep adding browser widgets to
> different cards I'm not seeing a file size increase… but just wanted
> to confirm.

Yes, you only "pay" for the browser widget once, no matter how many of
them you use.  Of course, using lots of browser widgets might require a
lot of CPU time and lots of RAM, but it won't make your app into a huge
download.

                                     Peter

-- 
Dr Peter Brett <peter.brett at livecode.com>
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode




More information about the use-livecode mailing list