Core Web Vitals (CLS and LCP) errors for a client-rendered Single Page Application (built with React + Firebase)

I have a SPA (single page website) build with React + Firebase and I’ve been getting these Core Web Vitals errors (see images below).

My website is loading normally both on Desktop and Mobile. And I think it’s rendering in a very reasonable time. At least I think it’s way faster than most websites I visit, even though it’s client side rendered.

I’m guessing these errors on Core Web Vitals are being triggered because there’s a Spinner that runs while the app is loading its data.

For example: that report is probably measuring the Spinner vs Loaded content as layout shift. Because I can guarantee that my app has ZERO layout shift. Once the Spinner is gone and you see content on your screen, the app is 100% ready for you to browse and interact with.

Maybe to get rid of those errors I would have to do SSR + hydration, which I really don’t want to, because it’s a dynamic website and I would have to either remove caching completely, or to risk a content (state vs fresh) flickering on the screen once it’s fully hydrated.

Should I care about these results? Is anybody that also manages a SPA also getting these kind of errors? Is there a way to fix this?

Found some related articles:

  • https://www.moovweb.com/post/google-penalizes-pwas-spas
  • https://www.enterspeed.com/core-web-vitals-can-affect-how-google-ranks-your-spa-website/

enter image description here

enter image description here

Problem with EnemyAi system unity keeps giving errors [duplicate]

My EnemyAi system works perfectly but for some reason when I start the game to test it unity keeps giving me errors.

Enemy Ai Script keeps giving me the NullReferenceException: Object reference not set to an instance of an object EnemyAi.Update() error inside unity about the line Vector3 lookDir = target.transform.position - transform.position;

using System.Collections; using System.Collections.Generic; using UnityEngine;  public class EnemyAi: MonoBehaviour {  public bool detected; GameObject target; public Transform enemy;  public GameObject Bullet; public Transform shootPoint;  public float shootSpeed = 10f; public float timeToShoot = 1.3f; float originalTime;  public EnemyAni Animation; public GunAni GunAnimation;  public ParticleSystem muzzleFlash;  public AudioManager Sound;  public PlayerHealth playerHealth;  void Start() {     originalTime = timeToShoot; }  public void Update() {     //makes the enemy rotate on one axis     Vector3 lookDir = target.transform.position - transform.position;      lookDir.y = 0f;      //makes enemy look at the players position     if (detected)     {         enemy.LookAt(target.transform.position, Vector3.up);         enemy.rotation = Quaternion.LookRotation(lookDir, Vector3.up);     }     if (detected == true)     {         Animation.LookPlayer = true;         GunAnimation.ShootPlayer = true;     }      if (detected == false)     {         Animation.LookPlayer = false;         GunAnimation.ShootPlayer = false;     } } 

Enemy character Game Object in the unity inspector:

Enemy Character unity Inspector

Enemy vision Gameobject in the unity Inspector:

Enemy Vision unity Inspector

My organization just to show how everything is attached:

Organization in unity

The error message there are a lot because it’s talking about the other Enemy GameObejcts:

Error Messages

Persistent connection string errors .NET Core

I am migrating a full framework application to .NET Core. Under the full framework, it used the following connection string with the IBM .NET Connector for DB2:

"Server=localhost:50000;Database=testdb;" 

The code then assigned UserID and Password properties from credentials vault.

Now, under Core, with the IBM .NET Core connector for DB2 specifically v.2.0.0.100 (long-term support, according to IBM), this connection string throws an exception when a connection string builder is created from it:

{System.ArgumentNullException: Value cannot be null.    at System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken)    at IBM.Data.DB2.Core.DB2ConnPool.ReplaceConnStrPwd(String value, String newvalue, Boolean onlyPwd)    at IBM.Data.DB2.Core.DB2Connection.RemoveConnectionStringPassword(String value, Boolean bMask)    at IBM.Data.DB2.Core.DB2ConnectionStringBuilder..ctor(String connectionString) 

There is no InnerException. I presume that some mandatory parameters of the connection string that I am not aware of have to be populated under Core, whereas under full framework they were optional. A careful read of IBM documents on DB2 connector Core yielded no mentions of connection string changes, unless I missed them. This blog post mentioned no such breaking changes.

Is anyone aware of mandatory connection string parameters that are missing from my connection string specifically for .NET Core connector?

Contact Form Submitter – Getting Errors

I am using only one deCaptcha service (Death by Captcha) and when I use my site’s contact page as a test, the result is “Failed general/unknown”. I updated the files in Platforms as suggested here (http://scrapeboxfaq.com/contact-form-poster-says-failed) and still nothing.

My site’s current contact page only has “I’m not a robot” captcha.

Am I missing any settings? What am I doing wrong? I tried a few other websites with the same result.

Uncaught Error: Class ‘Redis’ errors on a site I’ve transfered to new hosting

I’ve been given a site that I need to install on my server. The site was made by someone else and it seems to have redis installed.

I get errors such as (paths altered/truncated in the error msg for privacy reasons):

Fatal error: Uncaught Error: Class ‘Redis’ not found in wp-content\object-cache.php:732 Stack trace: #0 wp-content\object-cache.php(171): WP_Object_Cache->__construct() #1 wp-includes\load.php(638): wp_cache_init() #2 wp-settings.php(131): wp_start_object_cache() #3 wp-config.php(94): require_once(‘\path\…’) #4 wp-load.php(37): require_once(‘\path\gree…’) #5 wp-blog-header.php(13): require_once(‘\path\…’) #6 index.php(17): require(‘\path\…’) #7 {main} thrown in wp-content\object-cache.php on line 732

What’s really odd is that they didn’t give me the WP codebase, just the wp-content folders with theme, plugins, uploads.

So the entire wp codebase, wp-config etc are all defaults that I’ve just obtained from the current latest version at WordPress.org.

So if the wp-config is as default, how can some redis like system be coming into play? I’ve never had this issue before and transferred 101 pre-build WP sites between servers.

Can anyone assist ?

SSL not working fine, Home url not matching with site url wordpress errors

I deployed WordPress through Bitnami so after adding an SSL certification I started getting warnings from my WordPress dashboard of my site URL not matching with Home URL I was directed to my WordPress settings To reset back to https://www.healthviewonfraweb.xyz instead of http but I saw that I could not do that on the my settings, I had to login my Myphpadmin to do it there but WP-OPTION still has the correct URL which is https://www.healthviewonfraweb.xyz but still not reflecting on my WordPress

My problem now is why is the URL on my WordPress General settings is http://www.healthviewonfraweb.xyz/ instead of https://www.healthviewonfraweb.xyz and still cannot be changed from there or why is the site URL on my wp-option not same with the one on my WordPress General settings.

Thank you

Reflective DLL Injection using mingw compiles with no Errors, But doesn’t work

I’ve been playing around with the Reflective DLL injection code, I can compile the Dll’s in mingw easily and inject them using the original compiled binaries given here. I can also compile the Injector with no Errors, But the injector doesn’t work and gives me this on Each time, on every Process, As Administrator, And using precompiled injection dlls.

[-] Failed to inject the DLL. Error=998 

Due to this I’ve tried switching my compilers (because I thought it may be it’s problem) from Mingw-64 to Mingw to TDM GCC (this one is easy to use, So I’ll keep this one). But it doesn’t work on either of them. I’m not an Msvc guy, I also don’t like Visual Studio. 🙂

Here’s how I’m compiling the injector.

gcc GetProcAddressR.c Inject.c LoadLibraryR.c 

The original code by Stephen fewer does not support mingw. But it’s fork the one that’s used in Meterpreter does. It can be found here, And this is what I’m using. https://github.com/rapid7/ReflectiveDLLInjection

EDIT : I’m on Windows 10 x64. But I also tried on Windows 7 32 bit. Same Error.

Why am i getting “missing right parenthesis” error when i try to LOG ERRORS when loading from an external table?

I’ve successfully created an error logging table

BEGIN     DBMS_ERRLOG.create_error_log(     dml_table_name  => 'enzyme',     skip_unsupported => TRUE); END; /  desc ERR$  _ENZYME; 
Name            Null? Type            --------------- ----- --------------  ORA_ERR_NUMBER$         NUMBER          ORA_ERR_MESG$           VARCHAR2(2000)  ORA_ERR_ROWID$          UROWID          ORA_ERR_OPTYP$          VARCHAR2(2)     ORA_ERR_TAG$            VARCHAR2(2000)  ENZ_NAME              VARCHAR2(4000)  

But i get an error when I try to run this query:

insert /*+ ignore_row_on_dupkey_index ( enzyme ( enz_name ) ) */ into enzyme SELECT enz_name FROM EXTERNAL ((   construct_id NUMBER(10),   n_term VARCHAR2 (50),   enz_name VARCHAR2 (3),   c_term VARCHAR2 (50),   cpp VARCHAR2 (50),   mutations VARCHAR2 (50),   mw_kda NUMBER (7, 3))      TYPE ORACLE_LOADER     DEFAULT DIRECTORY data_to_input     ACCESS PARAMETERS (         RECORDS DELIMITED BY NEWLINE         skip 1         FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'         MISSING FIELD VALUES ARE NULL          )      LOCATION ('CONSTRUCT.CSV')     LOG ERRORS INTO ERR$  _ENZYME ('INSERT') REJECT LIMIT UNLIMITED) ext     where not exists (         select * from enzyme e         where e.enz_name = ext.enz_name     ); 
Error at Command Line : 79 Column : 5 Error report - SQL Error: ORA-00907: missing right parenthesis 00907. 00000 -  "missing right parenthesis" *Cause:     *Action: 

Line 79 is the LOG ERRORS INTO line.

If i delete the LOG ERRORS INTO ERR$ _ENZYME ('INSERT') part, this command functions perfectly.