Jump to content

Theme Development - Time consuming and slow


Recommended Posts

I'm building a theme using the default as a base.

 

I've got cache turned off because I want to see my updates after refreshing the page but it takes forever. It's really slowing me down and it's getting boring.

 

Does anybody have any tips to speed things up?

Link to comment
Share on other sites

What do you mean, it's taking forever? Which part, or do you mean theme development in general?

 

Coding, and in this case specifically front-end development, is a slow thing. There is just a lot that needs to be done and it takes a while. With experience you'll get better at it but there is no magic way to improve your performance.

 

You can, however, improve your both your speed and code quality quite substantially by using a proper work environment, starting with a good IDE.

Link to comment
Share on other sites

I think you misunderstood my post.

 

Im using sublime text 3 - im compiling my scss using laravel elixir, my coding speed is fine. 

 

What I mean is that when i make some changes, I go to reload my page to check out what my changes to look - and it's taking almost a minute to load the page. This is on a local set up so connection speeds aren't an issue. It's prestashop itself, seems to take a hell of a long time to render pages with cache turned off.

Link to comment
Share on other sites

A minute is a long time, even with cache turned off. For my local dev installation, it's generally around 3-4 seconds, so you should be able to improve quite substantially.

 

Are you using any non-required modules? Do you have any non-required htaccess lines?

 

In Chrome (or the equivalent in any other browser) you can find a "Network" tab under the dev tools, what is taking up the most time? The initial connection?

Link to comment
Share on other sites

The initial request takes 22 seconds? (!!)

 

That is insane. What kind of machine are you running this on? Do you have a dedicated core for the local server to use? Are you running any other heavy I/O processes on the same drive? Which software do you use for the local server?

 

Regarding the requests: go to Modules -> Positions in the backend, and look for modules (displayHeader hook is a good start) that are currently hooking into the FO that you do not need, and disable/uninstall those.

Edited by Apium (see edit history)
Link to comment
Share on other sites

I'm running a centos6 vm with apache2 on a windows 10 host machine. Doesn't have a dedicated core. No heavy processes running.

 

Like I said, i was intending on keeping a lot of the functionality that currently gets loaded in through the header hook, think I might have to look at bringing all the assets in through my compiler instead and see if that improves things.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...