• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Query is fast, but long lag before page is rendered

New Here ,
Sep 20, 2006 Sep 20, 2006

Copy link to clipboard

Copied

Good morning, all!

I have a page that runs a query that returns 518 records. The page is taking about 9 seconds to load. I added code after the CFOUTPUT so that I could check the speed of that section and that shows me that the CFOUTPUT finishes looping over the query after 3 seconds. The CFOUTPUT block is the last code on the page; just to be sure, I added a window.defaultstatus = 'done' as the line immediately before the closing body and html tags. The status bar shows 'done' and then it takes between 5 and 6 seconds before the page renders.

I realize that this is probably not a CF issue, maybe a browser setting? Our standard is IE 6.0, which is what I am using.

Any ideas, war stories, resources, or references would be greatly appreciated.

Thanks,
Kathryn
TOPICS
Advanced techniques

Views

306

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 20, 2006 Sep 20, 2006

Copy link to clipboard

Copied

Do a view source and create an html file. Then see how long it takes that to render.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 20, 2006 Sep 20, 2006

Copy link to clipboard

Copied

LATEST
Any ideas, war stories, resources, or references would be greatly
appreciated.



How much content is being delivered to the browser. Once CF is done,
all information in the page must make it down the pipeline to the client
and then the client has to render it.

If you are doing a lot of looping and|or calculation as CF builds the
request, you could be generating a mind boggling amount of extraneous
white space.

There are many ways with which one can use to mitigate some of this
white space. <cfsilent>, <cfprocessingDirective> and <cfsetting> tags.
Settings in the administrator, and just restructuring your code to
reduce white space to name a few.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation