I'm just finishing up my first D8 development and looking to refine the performance of the site.
Surprisingly I'm seeing some pretty scary processing time of twig templates by webprofiler. An uncached page has >7000ms of twig processing which is mostly consumed by views-view.html.twig, views-view-unformatted.html.twig and a node template. The best cached performance still sees twig consuming 500ms and a page load is around 1300-1600ms.
With BigPipe turned on I can achieve 400ms twig, page load of 1000ms.
is there an option to set the start location at Google Maps, using the Geolocation Module? I have already tried with the "Google Maps Additional Parameters" by "Web Services Settings" and the JSON styles by "Field->Widget settings". Noone shows any change at the behavior of the Map.
I am in Ecuador. Google Maps starts with some location at the cost of Africa!
Hi everyone. I'm new to Drupal and it's theme development. I am wanting to add in the Remodal jQuery library and have it active site wide, but I don't it to be a module. My questions are:
1) If I use drupal_add_library, do I need to create a module with the hook_library? I didnt' use this, just wondering.
2) Currently I have this in my template.php with the remodal library in my sites/all/libraries/remodal:
We're developing a theme where the content the user can see is depending on a choice he made when visiting the site. The Search results alsoe need to be trimmed depending on that choice.
I created a function theme_preprocess_search_result(&$variables) that verifies that the user can see the node or not: