IFrame or Javascript - what is better for seo

Discussion in 'Search Engine Optimization' started by DharmaSeo, Mar 4, 2008.

  1. #1
    if you have to put an ad on your page, what would you put if you had the option?
     
    DharmaSeo, Mar 4, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #2
    JavaScript. And it wouldn't be for SEO either.
     
    Dan Schulz, Mar 4, 2008 IP
  3. webcosmo

    webcosmo Notable Member

    Messages:
    5,840
    Likes Received:
    153
    Best Answers:
    2
    Trophy Points:
    255
    #3
    JavaScript for me also. Faster loading.
    Neither options you mentioned is good for SEO.
     
    webcosmo, Mar 4, 2008 IP
  4. bscdesign.com

    bscdesign.com Active Member

    Messages:
    681
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Well for SEO I would say put the ad networks code in an iFrame. The only reason is because if the ad server is down and your site doesn't completely load because of it then that won't be good for SE spiders.
     
    bscdesign.com, Mar 4, 2008 IP
  5. marshalseo

    marshalseo Peon

    Messages:
    252
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Neither Iframe nor java script is better in point of seo but You should use java script because it does not cached by spiders.
     
    marshalseo, Mar 4, 2008 IP
  6. dpking

    dpking Peon

    Messages:
    1,021
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Nine is good for SEO !! But javascript is better then nothing !!
     
    dpking, Mar 4, 2008 IP
  7. choicefreedom2000

    choicefreedom2000 Peon

    Messages:
    374
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I agree with all my friends as they have already mention that neither javascript nor Iframe are good for seo purpose but if you want to use any one of them then you can go for javascript because when visitors visit your site the loading process is fast because of that and visitors dont click that small X.
     
    choicefreedom2000, Mar 5, 2008 IP
  8. DharmaSeo

    DharmaSeo Peon

    Messages:
    1,819
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #8
    thats everyone, i use JS!
     
    DharmaSeo, Mar 5, 2008 IP
  9. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #9
    search engines does not like iframes. using js is better
     
    trichnosis, Mar 5, 2008 IP
  10. alienated

    alienated Active Member

    Messages:
    144
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    73
    #10
    SEO for ads? Why would you want to do that?

    For ads, I'd put the ad in iframe if it contains JS, so that it doesnt affect the main page loading time.
     
    alienated, Mar 6, 2008 IP
  11. jsb

    jsb Guest

    Messages:
    100
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    If your iframe doesn't contain information you wished to have indexed, I don't see a problem.
     
    jsb, Mar 6, 2008 IP
  12. meetuchoudhary

    meetuchoudhary Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    According TO me for the purpose of SEO none of these two is a good choice but still if no other option is available or due to restrictions we can't use other options beside these two then i will opt javascript
     
    meetuchoudhary, Feb 11, 2009 IP
  13. shailendra

    shailendra Peon

    Messages:
    1,225
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #13
    use of JS is better than the use of iFrames if you have to make the choice between the two. the content in the JS is indexed by the search engines.
     
    shailendra, Feb 11, 2009 IP
  14. VishalVasani

    VishalVasani Peon

    Messages:
    560
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I will suggest JavaScript against IFrame...But from the SEO Point of view data generated by in JS or Iframe are not considered.
     
    VishalVasani, Feb 11, 2009 IP
  15. seodilip

    seodilip Active Member

    Messages:
    697
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #15
    both options you have mentioned here are not useful for seo. B'coz SE crawlers doesn't like iFrames and javascripts.
     
    seodilip, Feb 11, 2009 IP
  16. david001

    david001 Banned

    Messages:
    87
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Its true that both IFrame and Java Script are not good for SEO purposes. But if you still want to go for it , I will suggest Java Script.
     
    david001, Feb 11, 2009 IP
  17. sborchert

    sborchert Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    So my take on the question is, while optimizing a website for SEO, which is better (iFrame or Javascript) for "ads only" to NOT AFFECT or DECREASE the websites SEO. I don't think anyone wants the actual ads to be optimized.
    I'm working on a site that has anywhere from 6-12 ads on the header and side column. Each ad has a considerable amount of javascript. Though JavaScript does load faster, if the ad server is slow it will slow your page load. With google now taking page load time into their search algorithms my thought is that iFrames would be better because they are different pages being loaded. Faster load time = better SEO rankings. (Though only about 1% of search queries are affected by page speeds). The better part of using iFrames is that it removes a lot of clutter from the page making it easier for the real content of the page to be discovered and indexed. If each ad has 25 lines of JavaScript and i have 12 ads, that's 300 lines of code I've cleared away for the spider. I can replace that with 12 lines that reference iFrames.
     
    sborchert, Sep 21, 2010 IP
  18. Ricky86

    Ricky86 Member

    Messages:
    100
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #18
    Don't and never use iframe. Google recommends in its announcements.
     
    Ricky86, Sep 21, 2010 IP
  19. sborchert

    sborchert Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Ricky86, I can't seem to find any references to Google saying that iframes (in general) are bad. I could only find a thread mentioning that when using ADSENSE, to not use iframes. http://forums.digitalpoint.com/showthread.php?t=53643

    I guess the question for the original poster is....are you using google AdSense or not? If so.

    I'd like to learn WHY google says this and some links to back it up. :cool:
     
    sborchert, Sep 22, 2010 IP