Jump to content

Can I Preinclude?


holyearth

Recommended Posts

I am having a unique issue which no can seem to figure out...

 

My site is not loading properly in IE7 ... an image after an "include" function wont load. (ONLY in IE7)

 

If I take out the include ... the image loads....

 

Im thinking because the include takes a few seconds to load IE7 forgets to load the image afterwards or something...

 

So, can I have the page begin the inclusion at the top like a preinclude or something ... then tell it later to insert here...?

 

Not really familiar with PHP, so im not sure if this is do-able...

Link to comment
Share on other sites

Includes are handled server-side. The page is not sent to the browser until the script completes, so it is not an issue of timing. My guess is that the include has some code that is changing the html such that the image code is not recognized by IE7.

 

Have you checked to HTML output to verify that the image code is correct? Show some code for more assistance.

 

More directly to your question, there is no pre-include functionality that I am aware of. You could include the code as a function and then run the function later in the code though.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.