Jump to content

speed issue and CSS / JS


Recommended Posts

speed issue and CSS / JS


 


the website i'm working on some times seems slow, i was looking at resource downloaded and i notice that JS is 225Kb (it seems very big) and CSS 173Kb


but for each page it changes name, are all like this


 


randomname.js 


randomname.css


 


this way browser needs to cache a big JS and  CSS for each page or section


is that normal?


 


i did try to write an example file name but when i post topic a get redirect to home page without an error message, i guess is because forum get that name as spam, even if i use code tag




f 0 7 7 0 1 e 5 a 2 b 6 1 c e b c 9 0 d 1 9 8 c 3 0 8 4 e 7 2 4 . j s 


e 2 c 7 e 3 f 4 b b d 9 1 b c 7 b 0 4 0 d 0 8 2 6 3 c 3 a 6 c 2 _ a l l . c s s


Link to comment
Share on other sites

If you use javascript and css compression, yes, it's normal. Ideally, it would be better not to use prestashop's compression, create a single file for css and compress it. As for javascript, it all depends on the files you need. You can get more info by using a debug console and inspecting the resources tab, so you know which files you probably won't need

Link to comment
Share on other sites

×
×
  • Create New...