jquery in source code

Home Forums Quform WordPress jquery in source code

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6256
    Joakim
    Participant

    Hello,

    Thanks for a great form building plugin! Really loving it so far.

    My concern though when it comes to seo, I’ve noticed in my source code that the plugin is placing alot of scripts, which is a concern to me since I am using x2 forms on my site’s homepage:

    <script type="text/javascript">
    <!--
    jQuery(document).ready(function ($) {
    var $link = $('#iphorm_fancybox_52298b3a35a8e');
    if ($.isFunction($.fn.fancybox) && !$link.data('iphorm-initialised')) {
    $link.fancybox($.extend({
    inline: true,
    href: '#iphorm-outer-52298b3a30889',
    onStart: function () {
    $('#fancybox-outer').css('opacity', 0);
    },
    onComplete: function () {
    $('#fancybox-wrap, #fancybox-content').css({width: 'auto'});
    $.fancybox.center(0);
    setTimeout(function () {
    $('#fancybox-outer').animate({opacity: 1}, 400);
    $('#fancybox-overlay').css({height: $(document).height()});
    }, 1);
    }
    }, {})).data('iphorm-initialised', true);
    }
    });
    //-->
    </script>
    <div style="display: none;">
    <div id="iphorm-outer-52298b3a30889" class="iphorm-outer iphorm-outer-1 iphorm-uniform-theme-aristo iphorm-theme-light-rounded" >
    <script type="text/javascript">
    <!--
    jQuery(document).ready(function($) {

    $('#iphorm-52298b3a30889').iPhorm({"id":1,"uniqueId":"52298b3a30889","PHPSESSID":"ff4c2760923d00a1dc19734251233ea3","useAjax":true,"successMessageTimeout":10,"clElementIds":[],"clDependentElementIds":[],"centerFancybox":true,"centerFancyboxSpeed":true});

    if ($.isFunction($.fn.qtip)) {
    $('.iphorm-tooltip-hover', iPhorm.instance.$form).qtip({
    style: {
    classes: 'qtip-light qtip-shadow qtip-rounded'
    },
    position: {
    my: 'left center',
    at: 'right center'
    }
    });
    $('.iphorm-tooltip-click', iPhorm.instance.$form).qtip({
    style: {
    classes: 'qtip-light qtip-shadow qtip-rounded'
    },
    position: {
    my: 'left center',
    at: 'right center'
    },
    show: {
    event: 'focus'
    },
    hide: {
    event: 'unfocus'
    }
    });
    $('.iphorm-tooltip-icon-hover', iPhorm.instance.$form).qtip({
    style: {
    classes: 'qtip-light qtip-shadow qtip-rounded'
    },
    position: {
    my: 'left center',
    at: 'right center'
    },
    content: {
    text: function (api) {
    return $(this).find('.iphorm-tooltip-icon-content').html();
    }
    }
    });
    $('.iphorm-tooltip-icon-click', iPhorm.instance.$form).qtip({
    style: {
    classes: 'qtip-light qtip-shadow qtip-rounded'
    },
    position: {
    my: 'left center',
    at: 'right center'
    },
    show: {
    event: 'click'
    },
    hide: {
    event: 'unfocus'
    },
    content: {
    text: function (api) {
    return $(this).find('.iphorm-tooltip-icon-content').html();
    }
    }
    });
    $('.iphorm-labels-inside > .iphorm-element-spacer > label').hover(function () {
    $(this).siblings('.iphorm-input-wrap').find('.iphorm-tooltip-hover').qtip('show');
    }, function () {
    $(this).siblings('.iphorm-input-wrap').find('.iphorm-tooltip-hover').qtip('hide');
    });
    }

    if ($.isFunction($.fn.uniform)) {
    $('select, input:checkbox, input:radio', iPhorm.instance.$form).uniform({context: iPhorm.instance.$form, selectAutoWidth: false});
    }

    if ($.isFunction($.fn.inFieldLabels)) {
    $('.iphorm-labels-inside:not(.iphorm-element-wrap-recaptcha) > .iphorm-element-spacer > label', iPhorm.instance.$form).inFieldLabels();
    }

    $('.iphorm-group-row > div:last-child:not(:first-child)', iPhorm.instance.$form).add('.iphorm-group-row:last-child', iPhorm.instance.$form).addClass('last-child');

    }); // end document.ready()
    //-->
    </script>

    How would I go by reducing this? Thanks alot, much appreciated!

    #6262
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy