thedigicraft / Atom.CMS

Atom.CMS
56 stars 50 forks source link

Part 20 - Slow rendering of array after $all_vars #123

Open asani opened 9 years ago

asani commented 9 years ago

Having an issue with the page taking a very long time to load after adding thye $all_vars function on the debug.php. i cant press the bug btn before it loads...has this anything to do with the coding or is this an issiue with my free webhosting bandwith or something?

id like to know the issue before i continue..

btw...no lag after turning the debug id in setting table to 0!! only when the $all_vars runs!!

Any comments are appriciated!!

asani commented 9 years ago

Well after continuing watching the vid even though i wanted to resolve my problem before continuing, Alan commented out the part that was difficult to render:

            <?php //print_r($all_vars);?>

Now after adding

        <pre>
            <?php print_r($_GET);?>
        </pre>

The rendering worked flawlessly...

Even though i will not even use the $all_vars id like to know what may have caused the problem!!

creptor commented 9 years ago

Maybe it's your browser, if you have a kind of good host (or PC with xamp). Because the code being printed does not come with HTML so when the browser process it, it becomes slow....

I don't know much about it but I guess that's the problem.

And use 'var_dump($var)'. The php prints it with HTML pre tags.

Enviado desde mi iPhone

El 25-05-2015, a las 11:03 a.m., asani notifications@github.com escribió:

Well after continuing watching the vid even though i wanted to resolve my problem before continuing, Alan commented out the part that was difficult to render:

        <?php //print_r($all_vars);?>

Now after adding

    <pre>
        <?php print_r($_GET);?>
    </pre>

The rendering worked flawlessly...

Even though i will not even use the $all_vars id like to know what may have caused the problem!!

— Reply to this email directly or view it on GitHub.

asani commented 9 years ago

Well my hosting is free so nothing good can come from that... :) thanks for replying dude

creptor commented 9 years ago

You can check for speed with the developers tools (i like chrome :3) in the network tab... Where you will find the connection proces, like the dns lookup, the initial conection, request, server load time, and download :+1: