Welcome Guest, Not a member yet? Register   Sign In
Like this website?
#1

[eluser]kaylit[/eluser]
Hi Guys...

first of all I wanna say thanks to this useful Framework..love it!! Smile

then, I have a question:

Surfing the web, I saw this website:
visit it

If you browse every pages, you'll can observe that header and footer
never refresh...that website it's really fast!

I'd like to reach the same result, but sincerely I don't know where I have to start!


Any suggestion??


Thanks guys!


Kayl Smile
#2

[eluser]Michael Wales[/eluser]
It does reload it's just running off of a very fast server. The only way to do what you are describing is with AJAX calls. Firebug doesn't show any AJAX requests happening and when you disable Javascript the page works in exactly the same manner.
#3

[eluser]iCore.pl[/eluser]
As the Michael said, this site is running extremly fast. That's why you don't see the changes. The only way to have such result is using cache.

A simple cache'a library is already built-in CodeIgniter. The better and more efficient way for cache'ing is using memcache server.
But for using memcache You need a server where you'll could install it, or a server where the memcache is already avaible.
#4

[eluser]kaylit[/eluser]
mmm....interesting!! Smile

But, I mean... how can I reach the same result, without using memcache server?

I started to study Codeigniter just today and in every controller I need,
I included the following code that calls my header and footer section:
Code:
$this->load->view('header');
$this->load->view('footer');

Is it the right way to proceed?
Any suggestion to reach best performance?


Thanks!!! Smile)

ps.
I'm novice... Sad
#5

[eluser]Eric Cope[/eluser]
serve HTML from a very fast server or use akamai or other content distribution networks.
Also, use Yslow to evaluate why your pages load slowly.
#6

[eluser]Peng Kong[/eluser]
Getting the most powerful (and expensive) servers in the world doesn't help if you page is 3mb because you got to remember that your users' internet connection also one of the bottle necks =p

IMO the top 4 things to do to make your page load blinking fast

1) Smallest possible size for page and external resources being requested by page
2) Least no. of external requests (to js, css, images)
3) Load css in header
4) Load js before </body>

Read http://developer.yahoo.com/performance/rules.html for the full list.
#7

[eluser]iCore.pl[/eluser]
You can start trying with cache class built-in CodeIgniter:
http://ellislab.com/codeigniter/user-gui...ching.html

It's simple, but for small websites, this should be enough.




Theme © iAndrew 2016 - Forum software by © MyBB