Not a bug What in the hell is this.

Tom Bombadildo

Dick, With Balls
OP
Member
Joined
Jul 11, 2009
Messages
14,580
Trophies
2
Age
29
Location
I forgot
Website
POCKET.LIKEITS
XP
19,268
Country
United States
blhdz.png

Is this like a thing now and I've just missed it or is this a bug or something?
 

DinohScene

Gay twink catboy
Global Moderator
Joined
Oct 11, 2011
Messages
22,562
Trophies
4
Location
Восторг
XP
22,897
Country
Antarctica
Yeah see everyone is getting it now, but no one believed me when i got that shiz.

Lemme try this.

edit: not getting any screen.
SpiderBortz confirmed to awesome for confirmation screens
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,377
Country
United Kingdom
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.
 
  • Like
Reactions: B-Blue

McHaggis

Fackin' Troller
Member
Joined
Oct 24, 2008
Messages
1,749
Trophies
0
XP
1,466
Country
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.
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.
 

Lucifer666

all the world needs is me
Member
Joined
Apr 22, 2011
Messages
1,626
Trophies
1
Location
The Fourth Dimension
XP
2,160
Country
United Kingdom
Can I just point out that this only happens exactly once to every user?
At least that's how it was for me. First time I liked a post with the new 'Temp, that popped up, and it never showed up again.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,377
Country
United Kingdom
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.

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.
 

Arras

Well-Known Member
Member
Joined
Sep 14, 2010
Messages
6,318
Trophies
2
XP
5,434
Country
Netherlands
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.
 

McHaggis

Fackin' Troller
Member
Joined
Oct 24, 2008
Messages
1,749
Trophies
0
XP
1,466
Country
Eevee
Moogle
Iruka
Goomba
Rainbow Dash
Eraqus

emigre. It all makes sense now.
Dang.

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.
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.

This bug would be considered a low priority by anyone because it doesn't really affect anything and is only mildly annoying. In fact, I had a hard time getting a repro for this because the forums load pretty quickly, hence why only a few people have reported it.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
  • AncientBoi @ AncientBoi:
    Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D
  • SylverReZ @ SylverReZ:
    @rqkaiju2, Physical media is a great source for archiving your data, none of that cloud storage shiz.
    SylverReZ @ SylverReZ: @rqkaiju2, Physical media is a great source for archiving your data, none of that cloud storage...