1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP expert needed

Discussion in 'BlackHat Lounge' started by SerpEvil, Oct 20, 2016.

  1. SerpEvil

    SerpEvil Supreme Member

    Joined:
    Jan 1, 2012
    Messages:
    1,497
    Likes Received:
    448
    Gender:
    Male
    Occupation:
    WebMaster
    Location:
    Top 3 On Google
    hi guys

    i am looking for a PHP expert.
    i need to improve my PHP site speed on google page speed insight.

    let me know if anyone can help.

    thx
     
  2. tasburrfoot

    tasburrfoot Regular Member

    Joined:
    Dec 16, 2008
    Messages:
    323
    Likes Received:
    152
    Try compressing the images on your site first, simple solution and can greatly increase your pages performance.
     
  3. SerpEvil

    SerpEvil Supreme Member

    Joined:
    Jan 1, 2012
    Messages:
    1,497
    Likes Received:
    448
    Gender:
    Male
    Occupation:
    WebMaster
    Location:
    Top 3 On Google
    lol

    these are my problems:

    Eliminate render-blocking JavaScript and CSS in above-the-fold content
    Leverage browser caching
     
  4. Aesteroth

    Aesteroth Junior Member

    Joined:
    Feb 25, 2016
    Messages:
    156
    Likes Received:
    148
    What CMS are you using?
     
  5. SerpEvil

    SerpEvil Supreme Member

    Joined:
    Jan 1, 2012
    Messages:
    1,497
    Likes Received:
    448
    Gender:
    Male
    Occupation:
    WebMaster
    Location:
    Top 3 On Google
    is a custom PHP site.
     
  6. SerpEvil

    SerpEvil Supreme Member

    Joined:
    Jan 1, 2012
    Messages:
    1,497
    Likes Received:
    448
    Gender:
    Male
    Occupation:
    WebMaster
    Location:
    Top 3 On Google
    it's a simple straight forward PHP coding
     
  7. tasburrfoot

    tasburrfoot Regular Member

    Joined:
    Dec 16, 2008
    Messages:
    323
    Likes Received:
    152
    Well, your first problem is JS and CSS, not PHP.
    Browser caching also has nothing really to do with PHP. For this solution, try something along the lines of this in your htaccess:
    <IfModule mod_expires>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 2 days"
    </IfModule>

    The veeeeery long and indepth read about browsing caching can be found here: https://www.mnot.net/cache_docs/
     
  8. Spysocks

    Spysocks Junior Member

    Joined:
    May 5, 2016
    Messages:
    121
    Likes Received:
    15
    Occupation:
    Socks service
    Home Page:
    Also u can try using cache for page which loading with database.
     
  9. SerpEvil

    SerpEvil Supreme Member

    Joined:
    Jan 1, 2012
    Messages:
    1,497
    Likes Received:
    448
    Gender:
    Male
    Occupation:
    WebMaster
    Location:
    Top 3 On Google
    u right guys,these are main problems

    Your page has 4 blocking script resources and 2 blocking CSS resources. This causes a delay in rendering your page.
    None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
     
  10. tasburrfoot

    tasburrfoot Regular Member

    Joined:
    Dec 16, 2008
    Messages:
    323
    Likes Received:
    152
    https://moz.com/learn/seo/page-speed
     
  11. Mr.Charles

    Mr.Charles Jr. VIP Jr. VIP

    Joined:
    Apr 6, 2012
    Messages:
    411
    Likes Received:
    36
    Gender:
    Male
    Occupation:
    Web Developer
    Location:
    Google
    Home Page:
    Code:
    Eliminate render-blocking JavaScript and CSS in above-the-fold content
    
    Hi mate, To fix this warning, you have to add all javascript to footer.