Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8957561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:01:06+00:00 2026-06-15T15:01:06+00:00

I had a template that was getting very long, so I split a section

  • 0

I had a template that was getting very long, so I split a section out into an associated partial template.

My long template now has a call to..

{% include "shorttemplate.html" %}

in it. This is appropriately inheriting everything I needed from the long template, but seems to produce an on-load flicker of the contents of shorttemplate–they’re not there, then suddenly are. Shouldn’t the inclusion be happening before the html is rendered? Why do I see this flicker?

I’m using the include command only for organizational clarity—I’m not even reusing this short subtemplate elsewhere, I just wanted to move this unit out of the long template.

Is there a way to ask all the flask code to execute before rendering the html so that I don’t see this flicker?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:01:07+00:00Added an answer on June 15, 2026 at 3:01 pm

    The flicker is there because the page takes longer to load, and this doesn’t depend on whether Flask code executes before or after rendering the HTML (although it happens just when you call render_template). The browser simply shows an intermediate state that you don’t normally see when pages load fast enough. If you have a problem with filckers like this, you can either

    • improve your server software stack by optimizing your code or replacing components you use,
    • improve your server hardware by throwing more resources to use (Faster CPU, more memory, faster storage), or
    • improve your client code by avoiding to reload the complete page, and using AJAX to update just the parts that need it.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had a tabBarApplication that I have as a template which has a UINavigation
I had the following template that essentially changed the color of the border of
I'm running Sitecore 6.5 and have a data template that has an image field
I thought I had it figured out but now I'm missing something. First I
A co-worker asked about some code like this that originally had templates in it.
When I installed MVC4 beta on a development PC, it had a template for
I had generated json with my model objects and sended responce to the template.
Had a page that was working fine. Only change I made was to add
Had a good search here but can't see anything that gets my mind in
I’m having trouble getting a AJAX/JSON function to work correctly. I had this function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.