Pages take very long to load after latest version updates

We updated our app with more or less the framework updates (front and back end) from the past year or so.

Something that is breaking our whole user experience is 3 - 4 second waits in between page loads which you will see in the little blue document loads in the screenshot.

Pages are super simple 1 form per page and a partial:

<body is="dmx-app" id="quickplan" class="bg-primary">
<dmx-datetime id="var1" interval="minutes"></dmx-datetime>
<%- await include('/partials/_register/_welcome_back', Object.assign({}, locals)) %>
<!-- Header and nav starts -->
<%- await include('/partials/_quickplan/_header', Object.assign({}, locals)) %>
<!-- Header and nav ends -->
<!-- Wizard Starts -->
<%- await include('/partials/_quickplan/_wizard', Object.assign({}, locals)) %>
<!-- Wizard Ends -->
<div is="dmx-view" id="content" class="pb-5">
    <%- await include(content, locals); %>
</div>

<script src="/bootstrap/5/js/bootstrap.bundle.min.js"></script>
</body>

These are content pages loading into a layout page. We never had these 3/4 second response times before the update.

Would be great if we can hget a fix to prevent this.

Wappler Version : 7.4.0
Operating System : MAC OS
Server Model: node.js
Database Type: postgress
Hosting Type: testing on local and on google cloud

Expected behavior

Pages load without this delay

Actual behavior

Delay of 3-4 seconds before a page loads

Silly thing but have you tried testing in Incognito Mode? Disregard this if its User reports of slow loading of course. Sometimes browser plugins are to blame and always worth checking if this is the case... We are running 7.4.0 on a wide range of applications and they are all buttery smooth from the most complex to the most simple. Our stack is Node/Docker/MySQL.

1 Like

Tried incognito. Not making a difference/

I have this fragment loading every single time for pages with partials.

Screenshot 2025-11-03 at 21.38.18

And it takes really long to load those pages.

Maybe have to roll back to April 2024 version of the front end framework files. Update is broken.

What content do you have on this content page?
What do you see when you click it and select timing?

income.ejs.zip (2.6 KB)

Attached one of the slow loading pages.

Here is the timing image:

On our QA environment we are getting 13+ seconds on some pages that was loading 200ms before the update

Is the server action on the page slowing it down? Have you tried commenting it out to see if it causes the issue?

From the timings it looks like the delay is purely on the server-side. Is your server using much CPU and/or Memory? Is it only the template pages that are slow or also the API endpoints?

If you have server-side data attached to the layout, partials or content page, could any of them have a long-running query?

We reverted back to our older versions of Wappler Framework for now since we need to deploy new version to production by tomorrow and I was scared that we weren’t going to solve this.

Everything runs fine and fast on previous versions.

We did have slowdowns with newer server.js/app.js files in the past primarily because of db connections slowing down and that is why we postponed the update for months.

Our db and app front and backends aren’t hosted in same environments. Front end is hosted on GCR with the backend in K8s and the db on a VM.

We use Wappler API actions for the GETS, but because we had problems POSTING from the front-end, we kept our Wappler serveractions on the pages but just added the API calls in Wappler Backend to our real backend that communicates with the database and performs calculations.

I am saying this so you understand this is not a run of the mill monolith Wappler App and that many things affect our app performance. At some point we just decided that the slowdowns with app.js and server.js is too big a risk to take.

We would like to work with you in solving this and maybe fixing any issues on your and/or our side. Not sure if it will be affective doing it using the forum, but we can try and I appreciate you always willing to jump in and advise till we get it right.

To answer your question. Old files, server action works fast, new files, slows down.

Somewhere in here our problem lies:

API endpoints run fine. It looks like any content page that loads into a layout page. A endpoinrt reponse would come through fairly quickly and then the form success redirect starts where the page looks like it is frozen for seconds and then it advances.

Using older versions of files in list I shared above remedies the situation.

Would sending you versions of any of the files be of help to try track down the problem. We have added sentry and a healthcheck end point to the server.js file but it works fine on current versions of files we have.

Let me know how we can please continue to troubleshoot. Thanks.

These are POSTS with 2 to 3 inputs to k8s hosted container . Very small and very fast.

1 Like

Hi @patrick Any suggestions how we can troubleshoot this or is it just better to leave the app on the old files? It is working fine and stable that way.

For now just stay with the old files if you don't require any of the new features. With the many changed files it will be difficult to pinpoint the exact issue, but my guess is that it is something with the rendering of the ejs pages on the server since the api endpoints run fine.

Do you also have delays on the local development server or only on remote servers?