Search found 92 matches

Search found 92 matches

Re: Opencart V3 HTTP/2 Push Headers

is a way to detect what dpi screen used and preload:
- only 1x image form normal dpi
- only 2x image for high dpi screen
?

Jump to post
  • Wed Feb 24, 2021 10:38 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

you can do the images separately by using: $imageExtensions = array('jpg','webp','svg','png','gif'); preg_match_all('/[^"=\s]+\.('.implode('|',$imageExtensions).')/', $this->output, $match_images, PREG_SET_ORDER); error_log(print_r($match_images,true)); yes, this code find all possible images , but...

Jump to post
  • Sat Jul 18, 2020 5:21 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

The only assets the code cannot detect are those not referenced in your html output but are referenced inside asset files. For example, fontawesome references font files inside its css files, the code detects the css file but not the font files inside, those the code cannot see and those you should...

Jump to post
  • Sat Jul 18, 2020 4:21 am
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

my host/server/site configuration not Push more than 5-6 images. that's why no matter detect all images on page and add they to header. another problem with Journal: on desktop view and mobile view Journal use images with different resolutions for example: main product: desktop 550x550, mobile iPhon...

Jump to post
  • Fri Jul 17, 2020 9:37 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

next strange:

only 5 (five) images pushed.
why?

Jump to post
  • Tue Jul 14, 2020 11:20 pm
  • Replies 119
  • Views 10253
Re: Some images not appearing

ndim_pro wrote:
Tue Jul 14, 2020 5:05 pm
Hello community!

My eshop is this https://radu.gr/
Opencart 3.0.3.2 with Journal 3

Problem is that some images in the home page are not showing.
what Journal version?

desktop, tablet or mobile view?
on what browser? Safari?

are you enable Lazy Load in Journal Perfomance section?

Jump to post
  • Tue Jul 14, 2020 11:15 pm
  • Replies 12
  • Views 656
Re: Opencart V3 HTTP/2 Push Headers

errors only while work in admin. well, turn push off for admin, no need there. use: if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/2.0' && !strstr($_SERVER['REQUEST_URI'],'admin/')) { [push code] } thanks. I will try. P.S. really work!!!! GREAT thanks!!!!!! 1. link string in header must be less than 4096...

Jump to post
  • Tue Jul 14, 2020 6:36 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

main conclusions about Server Push 1. link string in header must be less than 4096 bytes. when exceed this limit then 404 or 503 error that's why use separate link for each or control size 2. for Push in link accepted only filename with path like / catalog/view...../style.css filename like url https...

Jump to post
  • Mon Jul 13, 2020 9:25 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

your code remove head slash at the begin of file name Then set the subdir correctly. already done. now Push, but some problem with admin side. when css and/or js Push work in admin side generated some non-exist error like: www.priazha-shop.com/view/assets/css/bootstrap-multiselect.min.css www.priaz...

Jump to post
  • Wed Jul 08, 2020 5:55 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

Still. I would suggest you reduce your home page. home page is not my main "head pain" 404 and 503 was on other pages. But your server still does not show push as request initiator even when preload headers are set and there is no "receiving push" on those assets in the waterfall so I am pretty sur...

Jump to post
  • Wed Jul 08, 2020 2:59 am
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

some experiments and investigations and I found that:

string "link: ..." cannot be more than 4096 bytes!!!!

make separate "link: ..." for each css, js, font, mp3 and images

for images plan also make separate links for preload and prefetch.

Jump to post
  • Tue Jul 07, 2020 10:59 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

when you talk to your host, ask them is they have a setting/facility which limits the requests per second. when you push, the client will request many assets in parallel (multiplexed using the same tcp connection) when using http/2, perhaps your host limits that amount and that is why your client g...

Jump to post
  • Mon Jul 06, 2020 5:03 am
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

Not sure if journal can do that but you could do the same by detecting devices. Journal have separate view: - desktop - tablet - mobile and also separate settings for each view also I can separate settings for Customer, Customer Group, Stores. use strlen to count the characters. already. but I coun...

Jump to post
  • Sun Jul 05, 2020 8:13 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

besides, in my initiator it states push/other, in yours just other: now sets to use cookies So I still think it is a server/lightspeed issue. hoster says that size of headers are 16k but I think response header size is limit to 4k. how check response header size? size of response header near 500-60...

Jump to post
  • Sun Jul 05, 2020 6:13 am
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

may be more correctly count bytes added to header neither count number of links?

Jump to post
  • Sat Jul 04, 2020 9:38 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

may be problem in size of header in bytes. for example: header accept and page work more than 30 links like https://www.priazha-shop.com/yarnart-tulip-404 https://www.priazha-shop.com/image/cache/catalog/products/YarnArtTulip/yarnart-tulip-404-550x550w.jpg.webp but only 25 links like https://www.pri...

Jump to post
  • Sat Jul 04, 2020 5:02 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

letxobnav wrote:
Fri Jul 03, 2020 5:20 pm
what mobile browser are you using?
no matter

check on:
- Chrome on BlueStacks Emulator (Android)
- Chrome on Samsung A6,A5 (Android)
- Safari on iPad , iPhone 5 and 7

also check by https://developers.google.com/speed/pagespeed/insights/

Jump to post
  • Fri Jul 03, 2020 8:38 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

why not use different counters for different filetypes. css and js in total 5-6, some times upto 10-12. I still believe it has something to do with your nginx settings what? and how? if all nginx settings handle by hoster :( and when desktop browser than: header accept and work upto 40 190x190 imag...

Jump to post
  • Fri Jul 03, 2020 4:55 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

find experimental limit of links in header and add limiter to algorithm: $headerLinkCount = 0; foreach ($matches as $match) { if ( $headerLinkCount <=28 ) { $file = $match[2]; if ($relative) { if (substr($file,0,1) != '/' && substr($file,0,8) != 'https://') $file = $subDir.$file; } else { if (substr...

Jump to post
  • Thu Jul 02, 2020 8:01 pm
  • Replies 119
  • Views 10253
Re: Opencart V3 HTTP/2 Push Headers

depends from size of images links in headers limited to 25-35 now testing all pages of my site and want insert limiter to number of links in detection algorithm. difficulty in that Journal has separate view for desktop, tablet and mobile view and use different image dimensions and quantity for each ...

Jump to post
  • Wed Jul 01, 2020 11:12 pm
  • Replies 119
  • Views 10253

Search found 92 matches