Browscap Feature Request

31 views
Skip to first unread message

Vietnamkid1993

unread,
Jan 26, 2017, 5:55:58 AM1/26/17
to browscap
Great job on browscap I use it religiously. Do you have a lighter version that has the rendering engine name? If not, please update the lite one. I know the full version does but it takes too long to load. Plus we are advised to build for rendering engines not browsers.

James Titcumb

unread,
Jan 26, 2017, 6:06:53 AM1/26/17
to browscap
You shouldn't be using user agent sniffing to detect rendering engine. This should be done on the front end of your site. Sorry, but we won't be adding this sort of detail for the lite version.

What method are you using to load the full version anyway? Our own website, https://browscap.org/ uses the full version and is fast enough...

Thanks
James

Vietnamkid1993

unread,
Jan 26, 2017, 11:05:16 AM1/26/17
to browscap
I'm loading it from the php.ini and using the get_browser(null, true); method which is giving me around 1.2 - 1.5 seconds while the regular one gives me .023 seconds which is way better. Do you have a suggestion on a faster way to load in the file?

James Titcumb

unread,
Jan 26, 2017, 7:02:24 PM1/26/17
to browscap on behalf of Vietnamkid1993
I recommend the library https://github.com/browscap/browscap-php - should be much faster, unless you're on PHP master branch, I believe Nikita Popov did some performance improvements recently around browscap, tho I haven't had a chance to look at what exactly yet.

Thanks
James

On Thu, Jan 26, 2017 at 5:05 PM, Vietnamkid1993 via browscap <browscap+APn2wQfFcDpjYiHAS-ULwGn...@googlegroups.com> wrote:
I'm loading it from the php.ini and using the get_browser(null, true); method which is giving me around 1.2  - 1.5 seconds while the regular one gives me .023 seconds which is way better. Do you have a suggestion on a faster way to load in the file?

--
You received this message because you are subscribed to the Google Groups "browscap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to browscap+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/browscap/432172a0-7e40-435c-a70b-39598abc12b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages