Chronoform in IFrame includes two stylesheets

lowrykun 28 Mar, 2012
I noticed that when I load a Chronoform on the page it works fine, but when I load just the form inside an IFrame (used inside a lightbox) that I get two stylesheets included and performance suffers as the browser tries to figure out how to handle all the extra styles.

You can see below it's declaring the same stylesheet twice in two different ways:

<link rel="stylesheet" href="" type="text/css" />
<link href="" rel="stylesheet" type="text/css" media="screen" />
GreyHead 28 Mar, 2012
Hi lowrykun,

Yes I see what you mean . . . except that those are template stylesheets so ChronoForms isn't loading them :-(

Do you have &tmpl=component in the LightBox URL?

lowrykun 28 Mar, 2012
I do have &tmpl=component in the URL. But thanks for the tip. I've been grep'ing through the source code and see that it's not Chronoform. I just don't have any explanation as to why it's being called twice - and only on a form.

I'll keep looking and report if I find anything else.
lowrykun 28 Mar, 2012
Found it. Thanks to your &tmpl=component comment I noticed that it was using component.php and that the declaration was in the templates component.php twice. Don't know why it was set up this way. Hopefully performance is better with the stylesheet only loaded once.
This topic is locked and no more replies can be posted.