Topic-icon Social sharing buttons and Open Graph not working when minimizing HTML

Active Subscriptions:

None
When I minimize HTML with Jbetolo, the social buttons (twitter, Google and LinkedIn) are not working. When I look at the generated HTML I get the following results:

NOT MINIMIZED HTML:
<script type="text/javascript">jfbc.login.logout_facebook = false;
jfbc.base = 'www.centennium.nl/';
jfbc.return_url = 'L2ludGVyaW0vY2JpZS9hZHZpZXMuaHRtbA==';
jfbc.login.scope = 'email';
jfbc.login.show_modal = '0';
jfbc.login.use_popup = true;
jfbc.login.auto = '0';
jfbc.login.logged_in = false;
jfbc.token = '5e94f7ebe2cfbaed401f1d8e0b4ca8a2';
jfbc.init();
</script>
<meta name="twitter:description" content="Advies is alleen waardevol als het u daadwerkelijk verder helpt. Onze business intelligence adviseurs worden daarom liever niet afgerekend op de dikte van hun rapporten, maar op de toepasbaarheid van hun adviezen in de dagelijkse praktijk."/>
<meta property="og:description" content="Advies is alleen waardevol als het u daadwerkelijk verder helpt. Onze business intelligence adviseurs worden daarom liever niet afgerekend op de dikte van hun rapporten, maar op de toepasbaarheid van hun adviezen in de dagelijkse praktijk."/>
<meta name="twitter:image" content="www.centennium.nl/images/stories/content/cbie.jpg"/>
<meta property="og:image" content="www.centennium.nl/images/stories/content/cbie.jpg"/>
<meta property="og:url" content="www.centennium.nl/interim/cbie/advies.html"/>
<meta name="twitter:title" content="ONAFHANKELIJK ADVIES"/>
<meta property="og:title" content="ONAFHANKELIJK ADVIES"/>
<meta name="twitter:card" content="summary"/>
<meta property="og:type" content="article"/>
<meta property="fb:app_id" content="481747555260490"/>
<meta property="og:locale" content="nl_nl"/>
<meta property="og:site_name" content="Centennium"/>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script><script type="text/javascript" src="//platform.linkedin.com/in.js?async=true"></script>
<script type="text/javascript">IN.init({
api_key: '776wgywjxl9oqm',
authorize: false
});</script><script src="platform.twitter.com/widgets.js">

<link rel="apple-touch-icon-precomposed" href="/templates/fontaine_j3/apple_touch_icon.png" />



WITH MINIMIZED HTML
</script> <script type="text/javascript">jfbc.login.logout_facebook = false;
jfbc.base = 'www.centennium.nl/';
jfbc.return_url = 'L2ludGVyaW0vY2JpZS9hZHZpZXMuaHRtbA==';
jfbc.login.scope = 'email';
jfbc.login.show_modal = '0';
jfbc.login.use_popup = true;
jfbc.login.auto = '0';
jfbc.login.logged_in = false;
jfbc.token = '5e94f7ebe2cfbaed401f1d8e0b4ca8a2';
jfbc.init();</script> <SCOpenGraphPlaceholder
/>
<SourceCoastProviderJSPlaceholder
/><link
rel="apple-touch-icon-precomposed" href="/templates/fontaine_j3/apple_touch_icon.png" />


Looks like minimizing the HTML causes some very important code to disappear... Any idea how I might be able to fix this?

Thanks!
Martin
The topic has been locked.
Support Specialist
Make sure the JBetolo plugin is ordered last (highest number). You only want the optimizations to occur after the full page has been rendered and all of the plugins 'do their job'. Otherwise, you're compressing and minifying a page that isn't complete.

I hope that helps get you going, but if not, just let us know.

Thanks,
Alex
The topic has been locked.