• Creator
    Topic
  • #17183

    Justin Jurist
    Spectator
    Been thanked: 0 times

    This is the site… http://newsite.bankruptcyonlinetoday.com/
    the theme is Evolve, have evolve+ but am not using it
    I want to combine all the .js calls into one call on a separate file, I cannot for the life of me find where this code is, I have checked index.php, header.php, footer.php etc… I have spent hours looking through each file, now I am very new to this so I may be looking wrong or even the wrong idea and any help would be appreciated. the code below was just pulled by going into chrome and hitting ctrl+u even if I can’t create a single file call, I can’t even find the page of code to move it to the footer or further down the fold, the page loads very slowly and am trying to speed it up. I am sorry If I repeated another post, but i did not see one about this problem. Thank you in advance for any assistance.

    If you look at the code on the site….
    <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-includes/js/jquery/jquery.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-includes/js/jquery/jquery-migrate.min.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/parallax/parallax.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/parallax/modernizr.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/carousel.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/tipsy.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/fields.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/jquery.scroll.pack.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/supersubs.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/superfish.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/hoverIntent.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/buttons.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/ddslick.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/themes/evolve/library/media/js/bootstrap/js/bootstrap.js’></script> <script type=’text/javascript’ src=’https://maps.google.com/maps/api/js?sensor=false’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/plugins/contact-form-builder/js/if_gmap_front_end.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/plugins/contact-form-builder/js/cfm_main_front_end.js’></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.tools.min.js?rev=4.6.0′></script> <script type=’text/javascript’ src=’http://newsite.bankruptcyonlinetoday.com/wp-content/plugins/revslider/rs-plugin/js/jquery.themepunch.revolution.min.js?rev=4.6.0′></script>

Viewing 5 replies - 1 through 5 (of 5 total)
Replies
  • Roman
    Keymaster
    Post count: 2538
    Been thanked: 29 times
    #17184 |

    to combine/minify js/css files you could use a plugin, for example https://wordpress.org/plugins/bwp-minify/

    Justin Jurist
    Spectator
    Post count: 2
    Been thanked: 0 times
    #17190 |

    unfortunately that is using that plugin, it won’t do it. I have combined all the .js calls into one file but in the main page I want to put a single call to the .js file that combines all the calls to allow the page to load faster. thanks.

    Roman
    Keymaster
    Post count: 2538
    Been thanked: 29 times
    #17192 |

    sorry, this is not possible without changing the theme’s code or using a plugin. we cannot combine js files by default as they are used by users when doing development on their projects

    Justin Jurist
    Spectator
    Post count: 2
    Been thanked: 0 times
    #17193 |

    yes, i understand, but what is the name of the file I need to change the code in, that is the problem I cannot find the file that contains the aforementioned code so I can change it. I looked through the databases, index, footer, header, etc, I cannot find anywhere the code is written that is on my main page.

    Roman
    Keymaster
    Post count: 2538
    Been thanked: 29 times
    #17210 |

    all js and css files are enqueued in library/functions/functions.php file starting line #54

Viewing 5 replies - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.