Current time: 03-01-2021, 08:59 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facebook's "like" button
06-29-2010, 06:25 AM
Post: #12
RE: Facebook's "like" button
(06-29-2010 06:12 AM) Wrote:  Every great webmaster should know what is under the hood of their website.

If there is an external script that has to use window.onload they should use some sort of addLoadEvent function like the one I have above.

The reason I prefer the method is because I am making a webservice to be used on other sites as a javascript functions. I don't want to use the window.onload (even with addLoadEvent ) cause most webmasters are not a "great webmaster". They may have other shit on their page messing with window.onload . Moreover, some ad network may also cause problems (not the case for me cause on my site ads run in iframes).

Adding a dependency for jquery or prototype is overkill for the simple task I wanna acheive.

That said addLoadEvent is the best method to use if the website contains limited 3rd party scripts and the webmaster is skilled in javascript. We help you select the right CDN
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Facebook's "like" button - jarrod1937 - 06-25-2010, 04:57 AM
RE: Facebook's "like" button - jarrod1937 - 06-25-2010, 06:50 AM
RE: Facebook's "like" button - jarrod1937 - 06-25-2010, 07:58 AM
RE: Facebook's "like" button - jarrod1937 - 06-26-2010, 12:37 AM
RE: Facebook's "like" button - sajal - 06-29-2010, 05:41 AM
RE: Facebook's "like" button - sajal - 06-29-2010 06:25 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)