New Landing How can we help? Themeforest Theme Support Dante Delete files to make site faster

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #147251
    gmnikolis
    Member
    Post count: 17

    I would like to stop loading :
    1)http://maps.google.com/maps/api/js?sensor=false (30 minutes)
    2)http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700

    I don t use them on the web site both google maps and google fonts so i would like to remove them and not load when someone open the page. As you can see below they load on each page.

    Results from pagespeed by google:

    Optimize CSS Delivery of the following:
    http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700

    Leverage browser caching for the following cacheable resources:
    http://maps.google.com/maps/api/js?sensor=false (30 minutes)

    Is it possible to remove them? Cause i don t need them..

    #147265
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    It should not take so much long time.
    1-Please open to edit functions.php file of theme.

    Find this code:-
    wp_register_script('sf-maps', '//maps.google.com/maps/api/js?sensor=false', 'jquery', NULL, TRUE);
    
    Change to :-
    
    //wp_register_script('sf-maps', '//maps.google.com/maps/api/js?sensor=false', 'jquery', NULL, TRUE);

    2- Please go to Admin -> Theme Options -> Font options -> Choose all default fonts.

    Thanks
    Mohammad

    #147296
    gmnikolis
    Member
    Post count: 17

    Thank you for the quick reply.
    I have made step 2 (Please go to Admin -> Theme Options -> Font options -> Choose all default fonts.)

    It is still there…i Get this message from Google Page Speed:

    Optimize CSS Delivery of the following:
    http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700

    I would like to remove it completely because i don t use the google fonts,
    and there is no reason to make the web site even a lit bit heavier…and slower…

    #147304
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You need to do step 1 that Mohammad suggested so the fonts scrips don’t load.

    -Rui

    #147307
    gmnikolis
    Member
    Post count: 17

    Step 1 is for google maps (another issue)
    what should i do for google fonts?

    #147391
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me website url and wordpress admin login detail to check and resolve the issue.
    Thanks
    Mohammad

    #147441
    gmnikolis
    Member
    Post count: 17

    I solved it…
    It was a part of a slider plugin and not of the theme…
    Thank you

    #147471
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am glad that you managed to resolve the issue.
    Thanks
    Mohammad

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register