Skip to main content
bradguy50
Participant
June 15, 2017
Answered

Dreamweaver CS6 Crashes when I open my Index.html file

  • June 15, 2017
  • 1 reply
  • 893 views

Dreamweaver CS6 Crashes when I open my Index.html file, but no other file.

    This topic has been closed for replies.
    Correct answer Jon Fritz

    A couple of things that can cause lag problems in DW (while still being perfectly valid code)...

    1. Protocol relative links in the <head> of the page. Check for links to scripts or fonts starting with // and change them to http versions, at least during development. If you don't have any https pages, you can leave them ad http: // versions permanently.

    2. @import rules in your css. Rather than @import, use <link> tags to those css files in your <head> section.

    3. Certain remotely hosted javasscripts can also cause problems. Try commenting out all scripts in your page with html comments...

    <!-- <script> ... </script> -->

    If the page opens without issue, un-comment the scripts one by one until you find the issue. Sometimes, just moving a problematic externally hosted script into the local site will stop loading problems.

    1 reply

    Jon Fritz
    Community Expert
    Community Expert
    June 15, 2017

    The file itself could be corrupt. You might be able to salvage the code from it by doing the following...

    1. Open the index.html file in some other text editor, Notepad or Simple Text.
    2. Copy the code
    3. Open a new document in DW
    4. Paste the code
    5. Save over the original index.html file in your site

    If the new file still crashes, it's possible there's something in it DW doesn't like. Run the code through the validator at http://validator.w3.org/nu and clean out any structural errors then do the above with the newly cleaned code and see if it helps.

    bradguy50
    bradguy50Author
    Participant
    June 15, 2017

    The customer service dude indeed had me do this. It did nothing.

    The file DOES open after 2 minutes by the way, but before openedned instantly like all the others. I haven't changed file.

    So I get the spinning disc now and "not responding" and eventually, 2-3 minutes it will open. Code is the same and it never did this for years.

    Thoughts?

    Brad

    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    June 15, 2017

    A couple of things that can cause lag problems in DW (while still being perfectly valid code)...

    1. Protocol relative links in the <head> of the page. Check for links to scripts or fonts starting with // and change them to http versions, at least during development. If you don't have any https pages, you can leave them ad http: // versions permanently.

    2. @import rules in your css. Rather than @import, use <link> tags to those css files in your <head> section.

    3. Certain remotely hosted javasscripts can also cause problems. Try commenting out all scripts in your page with html comments...

    <!-- <script> ... </script> -->

    If the page opens without issue, un-comment the scripts one by one until you find the issue. Sometimes, just moving a problematic externally hosted script into the local site will stop loading problems.