Four Js Development Tools Forum

General => General Discussion => Topic started by: David S. on May 25, 2021, 03:27:39 pm



Title: GBC static loading page
Post by: David S. on May 25, 2021, 03:27:39 pm
Hello all, I am very new to the new GBC frontend and was wondering if there is a way to load a page without loading the GBC frontend. We have a .NET homepage that communicates to the Genero backend through an iframe. Since the GBC takes some time to load, it hurts the performance of the parent page.


Title: Re: GBC static loading page
Post by: Reuben B. on May 27, 2021, 02:08:18 am
First of all, if your GBC is slow to load, make sure you are compiling your customization in prod (production) mode and not cdev or dev.  See the entry for "prod" http://4js.com/online_documentation/fjs-gbc-manual-html/reference/buildtool/configure_compilation.html

Otherwise one technique that is suited to static pages, have a look at this example https://github.com/FourjsGenero/ex_htmlpagegenerator

That uses Genero code to build a static web page so you can re-use your existing 4gl logic to generate data, and you can also reuse the .css from your GBC or your .NET home page, depends what you want to look like.  If you look through the README, there are some links to real world pages created using that technique, either on demand or batch.  What you don't get with that technique is a running 4gl program, so you are not sitting in an INPUT, MENU etc whilst looking at that page.

 


Title: Re: GBC static loading page
Post by: David S. on June 01, 2021, 02:23:23 pm
Thank you so much, Reuben. We will take a look at that.