Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dE6Sh-0005TE-E3 for pgadmin-hackers@arkaria.postgresql.org; Fri, 26 May 2017 04:02:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dE6Sg-0005cZ-D5 for pgadmin-hackers@arkaria.postgresql.org; Fri, 26 May 2017 04:02:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dE6SQ-0005DP-VP for pgadmin-hackers@postgresql.org; Fri, 26 May 2017 04:02:35 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dE6SM-0001R1-2X for pgadmin-hackers@postgresql.org; Fri, 26 May 2017 04:02:34 +0000 Received: by mail-wm0-x22d.google.com with SMTP id d127so5787339wmf.0 for ; Thu, 25 May 2017 21:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yzBnn3lfNiXwrQ6aCiHVuLwUfvfYyy3H4PrPczHAX/Y=; b=T7G94DqtqAurIpZc0GX97JKnvVbCoUYx/c2eLb+a90JnqbWhUtWc/io9XZVy2EDyCr I0soxfWqoK58Wn1jLtQXLSK0QBD3gbdtTcPgFHDlWCdF7kWBJKJt8vvv+7crWgpXEuNe lmTFwnCmDA/0RSzY0Fx6WfqMiyiVynHHTST7Sdh7Gs5A76v+VluDcUPnh0BaVQYWFI8Q UbZr49mjzqGT+RBv4XOsSFNJfcCKV7OVo4sYc0pcvXkRj+Ioh/wuVehUiKcZfp0qIrQq QzG58kRZOsizXc6En71P5eBiLxP4a6aC7ZCoptZ4Nzhjes6bsDRzIHNryBbjBrte6yQr ksOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yzBnn3lfNiXwrQ6aCiHVuLwUfvfYyy3H4PrPczHAX/Y=; b=rUoGOcVspG+FZHSXUa6kpjGMWdWPNG6MkHecPOjUmfA4afAJ2KzJ2ZpDPTO/jFFXYN Hrnjw5osfrgmucR1k9wKTMqowPqOBfNwkdeh3eq5M2N6E7g6s/5IjI1rjgIeHbnIl96p nN+GFzUNKFXHOXetlzg4rQdSSVuXK6PrpxlBcym+fa7NjM4zIlZHRSiEWVJSuAlzyzGi jmix8c/Z9g6Xhy+Yj49CqyYqeO7UEZ0l5x1NCr+MHkgfK++hIVzawYubWVuvOBV3sD9t jEvcxVLMG8KBA/zL/aiL8cTug0WpuB56JgZdLbLosmmjcXlN1W/h3FN5JIy2KxQPVnZ1 1fKA== X-Gm-Message-State: AODbwcAxDQp774w5z67oJH2XMNTRTp7y7mn/3e+G0GX8dfAe/WRTQnOQ uBGAokIz4xK1WPQO9RpEGawnxxZvsn4z X-Received: by 10.223.134.46 with SMTP id 43mr30059841wrv.123.1495771348052; Thu, 25 May 2017 21:02:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.19.138 with HTTP; Thu, 25 May 2017 21:01:57 -0700 (PDT) In-Reply-To: References: From: Surinder Kumar Date: Fri, 26 May 2017 09:31:57 +0530 Message-ID: Subject: Re: [pgAdmin4][Patch]: Load module's JS files only when required To: Dave Page Cc: Joao Pedro De Almeida Pereira , pgadmin-hackers Content-Type: multipart/alternative; boundary="001a1146b7bcddc64e05506567b1" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --001a1146b7bcddc64e05506567b1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 26, 2017 at 3:02 AM, Dave Page wrote: > On Tue, May 23, 2017 at 4:21 PM, Dave Page wrote: > > > > I'm actually thinking that maybe it would be easier to start with the > > CSS files.... > > Which i did yesterday. However, it soon became obvious that that isn't > so easy either, as the CSS files contain url references which need to > be adjusted, which isn't trivial. > > However, I did find a flask-webpack module, which looks interesting: > > https://github.com/nickjj/flask-webpack > https://nickjanetakis.com/blog/manage-your-assets-with-flask-webpack > > Surinder; when you have some free time, could you look into a simple > PoC with the CSS files using that please? > =E2=80=8BOk. I will look > > -- > Dave Page > Blog: http://pgsnake.blogspot.com > Twitter: @pgsnake > > EnterpriseDB UK: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > --001a1146b7bcddc64e05506567b1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On = Fri, May 26, 2017 at 3:02 AM, Dave Page <dpage@pgadmin.org> = wrote:
On Tue, May 23, 2017 at 4:21 PM,= Dave Page <dpage@pgadmin.org&g= t; wrote:
>
> I'm actually thinking that maybe it would be easier to start with = the
> CSS files....

Which i did yesterday. However, it soon became obvious that that isn= 't
so easy either, as the CSS files contain url references which need to
be adjusted, which isn't trivial.

However, I did find a flask-webpack module, which looks interesting:

https://github.com/nickjj/flask-webpack
https://nickjanetakis.com/b= log/manage-your-assets-with-flask-webpack

Surinder; when you have some free time, could you look into a simple
PoC with the CSS files using that please?
=E2=80=8BOk. I will look

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--001a1146b7bcddc64e05506567b1--