Split-Screen Preview freezes on...

User 2575182 Photo


Registered User
1 post

Hey!

Can I make split-screen preview to ignore some part of code on .html-file?

Code that freezes preview for about 20 seconds is:
<!-- Facebook scripti alkaa -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/fi_FI/all.js#xfbml=1&appId=204664410888";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Facebook scripti loppuu-->

,thanx for your help in advance:)
User 122279 Photo


Senior Advisor
14,626 posts

Try clicking on the little icon at the bottom of the programme. if it is green with a bit of a chain, it will turn red when you click on it. What it does is telling the programme not to follow links on a page. The Facebook script, like many other scripts fetches the contents from the web, and that always takes time to load. It's the same with google maps when viewed in the programme before uploading.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 38401 Photo


Senior Advisor
10,951 posts

And you'll find that many if not all web design programs will give you this issue. It's a script issue not a program issue unfortunately, and usually the only way to stop it is to comment out the script once you have it working and placed where you want it (if you don't want to turn off following links as Inger has mentioned which also works well). Something to get used to as you work on sites :)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.