Questions tagged [code-splitting]

Code-splitting is an alternative to large bundles, which is where JavaScript is split into smaller chunks.

Code-splitting is an alternative to large bundles, which is where JavaScript is split into smaller chunks. This enables sending the minimal code required to provide value upfront, improving page-load times. The rest can be loaded on demand.

469 questions
0
votes
0 answers

using webpack's 'require' code splitting for multiple chunk generation is not working

I have the following webpack configuration: var path = require('path'), webpack = require('webpack'), CopyWebpackPlugin = require('copy-webpack-plugin'), WebpackStripLoader = require('strip-loader'); const webpack_config = { context:…
Bertuz
  • 2,390
  • 3
  • 25
  • 50
0
votes
1 answer

webpack hot middleware split chunk

I am trying utilise webpack code splitting. Everything looks like its working well, webpack splits the code correct, dependencies, pretty much as expected. Except i can't get it to work with hot-module-replacement. I successfully load…
ap-o
  • 170
  • 1
  • 8
0
votes
0 answers

Webpack code splitting without requiring all scripts in html

The following configuration will create client.js and vendors.js. example Entry entry: { 'client': './client.js', 'vendors' ['jquery' , 'react'] } Plugin new CommonsChunkPlugin({ name: 'client', minChunks: Infinity …
DangerLine
  • 23
  • 4
0
votes
1 answer

Code splitting with Webpack

My current Route description looks as follows for one of my routes: In order to split code for route paths I beleive the code may looks like this:
jasan
  • 11,475
  • 22
  • 57
  • 97
0
votes
1 answer

webpack async modules with promises

I am considering using webpack in my existing knockout based SPA framework in order to lazy load models, as the user browses through the site I had a look at the below thread Create individual SPA bundles with Webpack and the accepted answer seemed…
Thomas
  • 4,641
  • 13
  • 44
  • 67
0
votes
1 answer

GWT load fragments after application start

I am creating an app in GWT, and I just recently implemented code splitting there. I reduced the application size from 1.1MB to 570kB which is nice, so the startup time of the application is now faster (we are using special server where 500kB really…
ezpzlmnsqz1337
  • 394
  • 1
  • 5
  • 16
0
votes
1 answer

@ProxyCodeSplit how exactly it works?

I am new to GWT and GWTP. I know what is GWT Code Split and GWTP Proxy Code Split. I've already red: http://www.gwtproject.org/doc/latest/DevGuideCodeSplitting.html http://dev.arcbees.com/gwtp/core/presenters/creating-places.html I assumed that I…
masterdany88
  • 5,041
  • 11
  • 58
  • 132
0
votes
0 answers

GWT Getting username from url only works after refresh

My login based application, requires to always know the username of the logged in user. (MVP) . So I'm getting the username from the url, but when the page opens after the login succeeded, I can't get the username from the url, because it does not…
user5997576
0
votes
1 answer

CSS url path in additional chunk of Webpack can not be resolved correctly

I use Code Spliting feature of webpack to lazy load my angular app. I want to put some css in additional chunks to let the app lazy load these styles, but I found the url path in these css can not be resolved correctly. See the attachments below:…
PinkyJie
  • 817
  • 3
  • 8
  • 28
-1
votes
1 answer

How to load m bunch of icons dynamically in Next.js?

I do not know if it is worth, but I would load these icons dínamically. import { faCheck, faCogs, faCoins, faCouch, faCreditCard, faGhost, faGift, faPuzzlePiece, faQrcode, faTasks, faVideo, faChild, faCubes, } from…
János
  • 32,867
  • 38
  • 193
  • 353
-1
votes
3 answers

Splitting a string after a specific character in python

I wanna split everything comes after = and assigning it into a new variable example: https://www.exaple.com/index.php?id=24124 I wanna split whatever comes after = which's in this case 24124 and put it into a new variable.
n00b_cod3r
  • 1
  • 1
  • 2
-1
votes
1 answer

Apply Code Splitting in Ecommerce Mern stack?

I am building an E-Commerce MERN Stack Web Application. The loading time of my Home Page as tested by Lighthouse is more than 12s. I have hence posted the App.js file and my main main homepage.js file. How can I implement code splitting on my…
-1
votes
1 answer

lazy loading in react Uncaught SyntaxError: Unexpected token <

I'm trying to implement lazy loading and chunk splitting in my react app. up to now everything has been working fine and really haven't had any issues google couldn't resolve but this is doing my head in. please find below my babel and webpack…
-1
votes
2 answers

How do I split my c++ program into files that contain plain code lines, not necessarily functions?

this question looks familiar but trust me it actually is not ! Let me explain why. This is not about saving a function in a header file and including and calling it. An example will illustrate my query clearly so here we go: I have a program like…
quanta
  • 215
  • 3
  • 14
-2
votes
3 answers

Splitting json object

I have JSON output from SQL statement as below { "idno":6473853, "user":"GCA_GB", "operation":"U", "timestamp":"2022-08-22T13:14:48", "first_name":{ "old":"rak", "new":"raki" }, "fam_name":{ "old":"gow", …
1 2 3
31
32