- Joined
- Jul 11, 2009
- Messages
- 14,575
- Trophies
- 2
- Age
- 29
- Location
- I forgot
- Website
- POCKET.LIKEITS
- XP
- 19,220
- Country
Is this like a thing now and I've just missed it or is this a bug or something?
Yeah see everyone is getting it now, but no one believed me when i got that shiz.
Yeah, this is a result of late binding of events to buttons, coupled with gracefully degrading features for users with Javascript turned off.Looking around it is either a bug in the forums caused by pressing the button before everything has finished loading (not sure what it would have been in that thread but in those with lots of images the last bits of javascript can come a bit later). That would probably also explain why it happened in the first days of the forum before it started to be optimised a bit more.
Personally I would have set it so that if someone did more than a given number of likes in a day that it came up as a soft anti abuse measure.
It's ok, I was just liking a Gahars pun.Its just added protection to stop people liking shit posts.
Yeah, this is a result of late binding of events to buttons, coupled with gracefully degrading features for users with Javascript turned off.
A common practice in web development is to separate all JavaScript from HTML markup. This generally means setting event handlers using script and not in your HTML code. However, in order to set an event handler on something, that item needs to be loaded by the browser first, otherwise an error is thrown and script execution halts. To get around this, many developers will wait until the entire document has been parsed before setting event handlers. Thus, if you click before the entire document is parsed, the default action of the Like button (which is actually a link) is carried out as if your browser has JS disabled or does not support it.
Real™ developers can do this better. Click events and many other events propagate (or "bubble") up the document tree through the ancestors, firing the same event on each one until it gets to the root element or document object. If you set the event handler on the document object, then implement some checking code to see which element the event originated from, you can handle the event without having to wait till the page loads. XenForo's developers probably haven't thought of this, or don't think it's important enough to change how their event binding system works.
Looking around it is either a bug in the forums caused by pressing the button before everything has finished loading....
But it didn't appear to me when I liked this post!Its just added protection to stop people liking shit posts.
But it didn't appear to me when I liked this post!
Don't you mean or? I haven't seen anyone with the username RoxasPikaSephirothPeachSasukePinkyPie1337 yet.I'm exempt from rules on limiting shit posts because my username isn't inspired by Pokemon, Naruto, Final Fantasy, Mario, Kingdom Hearts and my little pony.
Don't you mean or? I haven't seen anyone with the username RoxasPikaSephirothPeachSasukePinkyPie1337 yet.
It's only a matter of time.Don't you mean or? I haven't seen anyone with the username RoxasPikaSephirothPeachSasukePinkyPie1337 yet.
And unfortunately this is probably true. Anyone who tried this should honestly start off with 90% warn level though.It's only a matter of time.
Dang.Eevee
Moogle
Iruka
Goomba
Rainbow Dash
Eraqus
emigre. It all makes sense now.
I agree; it's very important to work without Javascript. Many forum systems were built before the AJAX rush, so it's common for them to gracefully degrade anyway (and kind of expected). But for other sites, I'd always recommend coding for noscript users too.I know it is a few days later but it would be rude to not reply.
Guess I have to stop saying "yeah I can kind of build websites" when people ask (about the only thing I can stand remotely tall on is that I find the occasions where someone would try to teach HTML and CSS as separate entities truly jarring). The main reason for actually replying is having now run with noscript, requestpolicy and a whole bunch of similar settings/addons in "a speedfreak would say "damn son, that is a bit paranoid"" mode for several years now I can safely say if a site still works at full functionality (give or take being able to do things on page without visiting a new one) without javascript and it is not something that obviously requires javascript and such like I consider it a truly good day.