The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. Javascript, PhP and SEO Impact?

    Javascript, PhP and SEO Impact?

    Web Design
    3 3 1.5k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bronxpad
      bronxpad last edited by

      What are the Pro's and Con's of using Java Script and PHP in a site when factoring in SEO?

      1 Reply Last reply Reply Quote 0
      • AlanBleiweiss
        AlanBleiweiss last edited by

        JavaScript is one of several technologies that offers severe limitations in search engines and their ability to properly see content, then just as important but often overlooked, properly and cleanly evaluate that content from an SEO perspective.

        Specific considerations:

        • Google does a "fair" job at discovering content passed through JavaScript (either on-page or at the code level)
        • A "fair" job means it's hit and miss as to whether their system can actually find that content
        • Whatever content the Google system CAN find via JavaScript is NOT necessarily able to be used to properly evaluate content intent, focus or relationship to other content

        So - the best practices recommendation is if you want/need content to be found and properly evaluated by Google (or Bing) do NOT pass it through JavaScript.

        And also, if you want to HIDE content from Google, don't assume you can successfully do so via JavaScript either.

        As for PHP, its the most widely adopted and utilized web programming language out there.  The language by itself is essentially SEO neutral.  It's all in how a programmer utilized PHP that matters.  In the hands of a programmer that either truly understands SEO or collaborates closely with an SEO expert (who also understands the limitations/pitfalls that can arise with "bad" (SEO-unfriendly) PHP coding, it's a great language.

        1 Reply Last reply Reply Quote 4
        • AdamThompson
          AdamThompson last edited by

          Alan's answer is spot on.

          Avoid javaScript or carefully follow best-practices so Google can crawl all content without reading javaScript. Alan is exactly right when he said: never count on Google crawling through your JavaScript to find content, but also never count on being able to hide anything from Google via JavaScript.

          Whether you use PHP or not is not directly relevant. PHP is executed server-side, so Google never sees your PHP code and doesn't care. What matters is whether your programmer writes PHP code that will generate search friendly HTML code, url structure, etc.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Is Prerender.io/React going to negatively impact our SEO efforts?
            0
            1
            578

          • How do elements that are displayed when scrolled impact SEO?
            KendallHershey
            KendallHershey
            0
            3
            485

          • Does too much inline CSS impact SEO rankings
            TimHolmes
            TimHolmes
            1
            5
            8.0k

          • Does stock art photo attribution negatively impact SEO by leaking Google Page Rank?
            Kingalan1
            Kingalan1
            0
            5
            676

          • Will keyword optimization for a landing page impact SEO for subsequent pages?
            RikkiD22
            RikkiD22
            0
            2
            151

          • White Text / Black Background & SEO Impact
            KarlBantleman
            KarlBantleman
            0
            4
            2.5k

          • Transitioning to a dynamic home page. Impact on SEO?
            JasonBilog
            JasonBilog
            0
            3
            280

          • How to make AJAX/javascript website more seo friendly?
            AdoptionHelp
            AdoptionHelp
            0
            3
            1.6k

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy