Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: How Can I Help Make PM Faster?

by Lawliet (Curate)
on Aug 22, 2008 at 17:30 UTC ( [id://706245]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How Can I Help Make PM Faster?
in thread How Can I Help Make PM Faster?

I've wondered that for a couple months too. I figured they wanted to keep this written solely in Perl.

I'm so adjective, I verb nouns!

chomp; # nom nom nom

Replies are listed 'Best First'.
Re^4: How Can I Help Make PM Faster?
by jdporter (Paladin) on Aug 22, 2008 at 19:38 UTC
    I figured they wanted to keep this written solely in Perl.

    Not to keep it in Perl, specifically, but to keep it entirely on the server. There is a reluctance to make any feature of the site depend on Javascript, or any other browser-side technology (other than HTML and CSS). There is also a concern about Javascript specifically, and that is its potential for cross-site scripting attacks and other hackage. See thread Let users link in a javascript library for one representative discussion of the issues.

    Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.
      Not to keep it in Perl, specifically, but to keep it entirely on the server. There is a reluctance to make any feature of the site depend on Javascript, or any other browser-side technology (other than HTML and CSS).

      Just wondering... Could one avoid the full page reloads that are needed for voting, even without AJAX, by using... Iframes? I realize that Iframes are bad and deprecated and all, but they might be suited for this job:

      Just put a "++" and a "--" button into an iframe above every post. Of course it would need some more requests to initially load all these extra frames, but that doesn't need any database access, and connection caching should mitigate most of the overhead.

Re^4: How Can I Help Make PM Faster?
by creamygoodness (Curate) on Aug 22, 2008 at 18:21 UTC

    The full page reload upon casting a vote is inferior as a user interface to the Ajax-driven dynamic HTML you see everywhere these days (YouTube, Amazon, etc). It's tedious to click, scroll, click then reorient myself after a reload. Especially when reloads are slow because the site is slow.

    It also seems likely that voting-triggered full reloads contribute to the site's overall sluggishness.

    --
    Marvin Humphrey
    Rectangular Research ― http://www.rectangular.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://706245]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2026-01-15 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.